Facebook open graph GraphMethodException error code 100

前端 未结 5 2084
遇见更好的自我
遇见更好的自我 2021-02-13 03:59

I\'m trying to work my way through the Facebook tutorial publish and open graph story for iOS, https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/publish-open-graph

相关标签:
5条回答
  • 2021-02-13 04:38

    this error means that your Facebook page setting is not set to visible.

    Go to Facebook general setting and check page visibility.

    {
      "error": {
        "message": "Unsupported post request.", 
        "type": "GraphMethodException", 
        "code": 100
      }
    }
    
    0 讨论(0)
  • 2021-02-13 04:40

    Latest response from Facebook:

    This is by design and indeed due to the fact that a particular user opted out of platform in their settings. They can still post to a page's wall, viewable on the site (but not via the Graph API).

    To prevent user's who opt-out from being able to post to your wall, the page's settings need to be updated to set PLATFORM_OPTOUTS_CAN_POST to "false." The relevant documentation can be found here: https://developers.facebook.com/docs/reference/api/page/#settings

    The list of settings for a page can be accessed at this endpoint using a page access token: [PAGE_ID]/settings

    https://developers.facebook.com/bugs/155412377991372

    0 讨论(0)
  • 2021-02-13 04:48

    { "error": { "message": "Invalid appsecret_proof provided in the API argument", "type": "GraphMethodException", "code": 100, "fbtrace_id": "CjRXFGNtROl" } }

    If this your error it is because of in correct token. It may be because you are using different account for configuring web app and mobile app for Facebook configuration. Both accounts should be same.

    The app ID must be the same for your mobile app and your web app.

    0 讨论(0)
  • 2021-02-13 04:49

    Error 100 means that there is a plain syntax error in the URL you are posting to.

    I suspect you have a custom graph url set which doesn't match your action - see http://developers.facebook.com/docs/opengraph/creating-action-types :

    Graph API URL This customizes the exact endpoint used when publishing actions, which by default for custom action types is /me/{app-namespace}:{action-type-name}.

    0 讨论(0)
  • 2021-02-13 05:01

    Your action is beat, your object type is boss so it should be

    me/gopiratestd:beat

    and

    boss=https://hidden-castle-7245.herokuapp.com/opengraphobject.php?fb:app_id=554329451276476&og:type=gopiratestd:boss&og:title= beataboss&og:description=%22Beat%22&og:image=http://images.all-free-download.com/images/graphicmedium/beautiful_cat_picture_6_168770.jpg&body=Beat

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