Essential Android Facebook SDK edit forum

Setting permissions to access data from the Facebook profile

If you want to retrieve the details of a user’s Facebook profile, you need to set permissions for the same:

loginButton = (LoginButton)findViewById(R.id.login_button);

loginButton.setReadPermissions(Arrays.asList("email", "user_about_me"));

You can keep adding more permissions like friends-list, posts, photos etc. Just pick the right permission and add it the above list.

Note: You don’t need to set any explicit permissions for accessing the public profile (first name, last name, id, gender etc).


Table Of Contents
39 ACRA
64 Menu
103 Facebook SDK
112 Loader
119 Xposed
132 Colors
135 Fresco
140 AdMob
147 Button
156 Vk SDK
170 XMPP
176 OpenCV
200 FileIO
203 Moshi
217 Paint
231 AIDL
241 JCodec
243 Okio
255 Looper
  ↑ ↓ to navigate     ↵ to select     Esc to close