Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Populate facebook feed dialog message box

I have a small game in my website, and i want people to post their best time in facebook. To do this, i made an app, and then use 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 dont know how could I do it to populate the message field. what could I do?

like image 981
Enrique Moreno Tent Avatar asked Mar 18 '26 10:03

Enrique Moreno Tent


1 Answers

The message parameter is deprecated, also you can use FBJS API to post in a 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 you have to ask the user for publish_stream permissions first.

like image 74
Philip Avatar answered Mar 20 '26 20:03

Philip



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!