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

后端 未结 2 786
执念已碎
执念已碎 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:50

    "Liking your application" and "allowing your application to post to his wall" are two different sentences. There is no magic wand that allows you to override a user's preference whether they like you or not.

    Your best bet is to handle the "failure" and move on to the next person. If you want to know likers that don't want you to post to their wall, you can get that information in the return and store it in some type of "log".

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题