How to open facebook app user-timeline page for a specific id from my android app? -
i trying open facebook app specific user profile. code opening facebook intent:
 try{             toast.maketext(getactivity().getapplicationcontext(),                      facebook_id,                      toast.length_short).show();              intent intent = new intent(intent.action_view, uri.parse("fb://profile/" + facebook_id));             startactivity(intent);              }catch(exception e){              startactivity(new intent(intent.action_view, uri.parse("http://www.facebook.com/usernamepage")));             } this how received user_id:
user.getid(); (the user graphuser object facebook sdk) correct way user id , use openning inetnt? because not worked me.
if using graph api 2.x, user id have app-scoped user id, , there's no support getting user profile app-scoped id in facebook app.
Comments
Post a Comment