Fill in facebook upload message dialog
I have a little game on my site and I want people to post their best times on facebook. To do this, I made an application and then used the following link:
https://www.facebook.com/dialog/feed?app_id=363262997057304&name=Myname&link=http://www.mywebsite.com&redirect_uri=http://www.mywebsite.com&description=MyDescription
But I don't know how to do this to fill the message field. What can I do?
You don't have to populate the post field, asper Facebook, unless from a natural flow like a user typing a text field and submitting to the post field on submit. You should use descriptions, title fields for your purpose.
Post parameter is deprecated, also you can use FBJS API to post to user feed,
function postToFeed() {
var obj = {
method: 'feed',
link: 'https://apps.facebook.com/APP_NAMESPACE/',
picture: 'https://domain.tld/75x75.jpg',
name: 'TITLE',
caption: 'CAPTION',
description: 'My Score: '+score
};
FB.ui(obj);
}
but first you have to ask the user for permission publish_stream
.
Since you have a game application, all you have to do is publish your score using the games API described here: http://developers.facebook.com/docs/score/
From: http://developers.facebook.com/docs/guides/games/
Results and achievements
... Grades and Achievements The APIs are built on Open Graph and receive the same distribution points as all Open Graph stories - Ticker, News and Timeline. In addition to these ratings and achievements, they also benefit from the built-in aggregates and stories that were developed by Facebook.