I post some information on the user's wall through Facebook Connect (from my external site).
Everything works well, but I noticed some differences in the documentation for wall recordings in the Graph API and SDK for old JavaScript.
Use the charting API to post to the user's wall:
- Do an HTTP POST https://graph.facebook.com/ {0} / feed? access_token = {1} (where 0 = user ID, and 1 = oAuth access token for this user).
- In the HTTP POST, specify the following data in the data: message, link, image, name, signature, description, source.
This is described in detail on this page: http://developers.facebook.com/docs/reference/api/post
Now compare this to the FB.Connect.streamPublish method (old JavaScript SDK):
The JavaScript client function accepts the following parameters:
- USER_MESSAGE
- the attachment
- action_links
- target_id
- user_message_prompt
- callback
- auto_publish
- actor_id
This operation is described in detail on this page: http://developers.facebook.com/docs/reference/oldjavascript/FB.Connect.streamPublish
Now the operations in the Graph API and the old JavaScript API are very similar, except for the important parameter one - "action_links".
From the above link:
A dictionary of Action link objects containing link text and a hyperlink.
Essentially, this allows you to create sitelinks next to the Comment and Like buttons under the wall post. This is what I want to do, i.e. I want another “Do something on MySite” button to appear.
Why can't I do this using the Graph API? WTF Facebook, why did you create a new RESTful API that does not have all the functionality of your legacy API?
It annoys me that the Feed object has a collection of "action links" in JSON (if you were inclined to request this information).
But this is almost the same as Facebook, removed the ability to create action links using the Graph API. Is that what happened?
Am I missing something here? I really don't want to replace Graph API calls with the old JavaScript API.
Please, help!
EDIT:
Ok, ok, look what I found: http://bugs.developers.facebook.com/show_bug.cgi?id=11257
There seems to be a bug in which the Facebook API does not support Action Links.
When did the definition of "error" become "something that we left"?
Take a breath, go back to the old JavaScript SDK.
Facebook, I hate you.