facebook c# sdk - The user hasn't authorized the application to perform this action

后端 未结 2 803
执念已碎
执念已碎 2021-01-17 01:30

I am building a console app that will publish streams to a page\'s wall.

Issue: I\'m getting \"The user hasn\'t authorized the application to perform this action\".

2条回答
  •  既然无缘
    2021-01-17 01:57

    After visiting the following links, I was able to run the code and have it successfully publish to the page's wall, after which it shows up in the Likers' news feeds.

    http://www.facebook.com/login.php?api_key={API_KEY_GOES_HERE}&next=http://www.facebook.com/connect/login_success.html&req_perms=read_stream,publish_stream

    http://www.facebook.com/connect/prompt_permissions.php?api_key={API_KEY_GOES_HERE}&next=http://www.facebook.com/connect/login_success.html?xxRESULTTOKENxx&display=popup&ext_perm=publish_stream&profile_selector_ids={PAGE_ID_GOES_HERE}

    Thanks to the answer on Authorizing a Facebook Fan Page for Status Updates

提交回复
热议问题