Facebook Graph API - Page Tab Extra Permissions

后端 未结 5 1776
终归单人心
终归单人心 2021-02-06 03:19

I am trying to create a welcome tab for one of my pages, but I would like to be able to access a users likes (permission user_likes).

I can only find documentation on ho

相关标签:
5条回答
  • 2021-02-06 03:41

    It looks like you're using the same value for app_id and api_key. These should be different.

    0 讨论(0)
  • 2021-02-06 03:49

    Use the user id in the response object instead of 'me' when you call FB.api Both methods point to the fact you don't have your website domain settings correct in the app settings.

    We do this exact thing on a lot of our tab apps so it's definitely possible.

    0 讨论(0)
  • 2021-02-06 03:49

    Instead of displaying the link ($loginUrl) try to redirect user, for example using php header function or js location.href.

    0 讨论(0)
  • 2021-02-06 03:51

    You're seeing the error in your popup window because the redirect_uri in your authorization URL doesn't match what's listed in your Site URL in app config. To address this, you need to enable the "Website" option in app config. Enable it by clicking on the checkbox next to "Website" and then enter http://Site.com (or whatever your real site url is) in the "Site URL" text box. This URL must match the host url you're providing in redirect_uri. Doing this should solve the popup window error.

    In terms of the "Unsafe JavaScript attempt to access frame" error, are you using a webkit browser? Webkit throws these errors but for the most part can be ignored. See this for more info: "Unsafe JavaScript attempt to access frame with URL..." error being continuously generated in Chrome webkit inspector

    0 讨论(0)
  • 2021-02-06 03:51

    Yes it is possible. Read: http://www.masteringapi.com/tutorials/how-to-ask-for-extended-permission-in-your-facebook-application/32/

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