Facing permission Issues in facebook login integration using social auth in android

294 views Asked by At

Hi all I'm using SocialAuth library for Facebook integration in my app but after providing the credentials the screen attached below appears. Please help. enter image description here

2

There are 2 answers

3
Shubhank Gupta On

error is showing is invalid scopes publish_stream.

The permissions offline_access and publish_stream are deprecated, thus cannot be requested anymore.

publish_stream can be replaced by publish_actions, offline_access is gone.

Follow the link Error Invalid Scopes: offline_access, publish_stream, when I try to connect with Facebook API

I suggest not using old online tutorials use the Facebook docs first. https://developers.facebook.com/docs/apps/changelog

Hope this will help.Good Luck

10
Saritha G On

Add create Facebook ID and SECRET KEY like following.

Create oauth_consumer.properties in asset folder. Then copy ID and secret key into it.

assets/oauth_consumer.properties

 #facebook 
 graph.facebook.com.consumer_key = YOUR_ID                     
 graph.facebook.com.consumer_secret = YOUR_SECRET_KEY