Facebook open-graph - publish validity of actions

Can anyone tell me what is the robustness of the open public Facebook API when posting actions to a timeline?

Background

  • I created a new FB iOS app
  • Create a new action type "write" with custom "blogpost" object as generic types don't work for me.
  • Following every single snippet of the tutorial provided by Facebook at http://developers.facebook.com/docs/opengraph/tutorial/ to meet all OG requirements.

Publication code :

[self.facebook requestWithGraphPath: @"me/MY_APP:write" andParams: [NSMutableDictionary dictionaryWithObject: @"http://blogpost.url/here" forKey: @"blogpost"] andHttpMethod: @"POST" andDelegate: self];

      

Below is a snippet of the OG-compliant blog page chapter:

<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# MY_APP: http://ogp.me/ns/fb/MY_APP#">
      <title>Blogpost page</title>
      <meta property="og:title" content="Blogpost page" />
      <meta property="og:image" content="http://url.to/the/image.png" />
      <meta property="fb:app_id" content="123456790123456789" />
      <meta property="og:url" content="http://blogpost.url/here" />
      <meta property="og:type" content="MY_APP:blogpost" />
</head>

      

Test conditions :

  • Tested in the simulator as well as on the device itself
  • For every request attempt, I make a new app that starts to rule out any app networking issues.
  • Every time my request is exactly the same, with the same associated blog url.
  • I am using the latest iOS SDK
  • My network is completely reliable
  • The blogposts pages are accessible and correctly contain all the requirements set by opengraph

The Facebook API error answers change every time:

  • OAuthException: An unexpected error occurred. Please try again later.
  • Exception: Failed to get data from URL.
  • Exception: The object at URL 'http: //blogpost.url/here' of type MY_APP: blogpost is invalid because the domain "blogpost.url" is not valid for the specified application ID "XXXXXXXX". You can check the configured "application domain" at https://developers.facebook.com/apps/XXXXXXX .

(NOTE: Obviously blogpost.url is being replaced by a real existing page)

The success rate of requests is around 30%.

Is it possible that there are any problems at the end of Facebook? I do not currently like publishing my app on the current Facebook privacy sharing form.

Thank you for any feedback, help or advice.

+3


source to share


1 answer


With further research and patience, everything works reliably.

The following errors just stopped showing up within 24 hours without changing the code on our side (I suppose there really was a problem in FB):

  • OAuthException: An unexpected error occurred. Please try again later.
  • Exception: The object at URL 'http: //blogpost.url/here' of type MY_APP: blogpost is invalid because the domain "blogpost.url" is not valid for the specified application ID "XXXXXXXX". You can check the configured "application domain" at https://developers.facebook.com/apps/XXXXXXX .


The following exception was thrown by our action object url, since the url was being broadcast live literally a second before the "FB publish action", the url was not published in all instances of our web interface:

  • Exception: Failed to get data from URL.

Hope this helps someone in the future.

+2


source







All Articles