Android :Facebook sdk-4.4.1 Login without default Login button error on permissions? -
i login facebook without facebook login button have find attention message:
submit login review of permissions below have not been approved use facebook
this code
facebooksdk.sdkinitialize(getapplicationcontext()); setcontentview(r.layout.activity_login); callbackmanager = callbackmanager.factory.create(); loginmanager = loginmanager.getinstance(); loginmanager.getinstance().loginwithreadpermissions(loginactivity.this,arrays.aslist("user_photos")); loginmanager.registercallback(callbackmanager, new facebookcallback<loginresult>() { @override public void onsuccess(loginresult loginresult) { if (accesstoken.getcurrentaccesstoken() != null) { requestdata(); } } @override public void oncancel() { } @override public void onerror(facebookexception exception) { } }); } });
this not error message, developers.
you need submit application facebook additional permissions accessing user photos, friend list or publish on user wall.
check out this, this , this more information.
if login user application created not message, once application approved facebook message not come.
if app asks more than public_profile, email , user_friends require review facebook before app can used people other app's developers.
permissions not require review
public profile (default) permissions : default includes basic attributes person, part of person's public profile on facebook. default permissions included part of every permissions request, require different handling on web , native mobile platforms.
app friends : optional permission grants app ability read list of friends use app.
email permissions : gives access person's primary email address.
Comments
Post a Comment