Insufficient permission to post to target on behalf of the viewer in facebook(groups) code (#200)

 
       Insufficient permission to post to target on behalf of the viewer  in facebook code (#200)

                                       ********  TO post in Goups ,Profil,Page********






I configured my application in Apps > [NAME-OF-THE-APP] > Permissions(https://developers.facebook.com/apps/[APP-ID]/eview-status/items-in-review


Insufficient-permission-to-post-to-target-on-behalf-of-the-viewer





And select "user_groups,manage_pages,publish_actions,publish_stream,read_stream"

Insufficient permission to post to target on behalf of the viewer



and add items


 when user use the application for the first time, as seen in the picture below...


Insufficient-permission-to-post-to-target-on-behalf-of-the-viewer


select public 

These setting apply only to login from the app center. (And they also used to affect login via Authenticaed Referrals, which are now deprecated.)
Whenever you’re triggering the login yourself however (as you are doing with your FB.login call) – you have to specify the permissions there and then, via the scope=>"user_groups,manage_pages,publish_actions,publish_stream,read_stream" parametr.