Z
Z
Zohei2014-10-25 22:11:13
Facebook
Zohei, 2014-10-25 22:11:13

How to send a message to Facebook with a pre-filled text or an invite link?

Good afternoon!
You need to make sure that the user can send a link from the site to an invite to a friend on Facebook.
(Via js popup, because in version 2.0 it was forbidden to receive a list of user's friends directly from the application)
An example from the docs https://developers.facebook.com/docs/sharing/refer...

FB.ui({
  method: 'send',
  link: 'http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html',
});

The problems here are the following, Facebook itself climbs the link to get content from the page, the invite link redirects the user to another page, as a result, Facebook displays only the final link to the user, not the invite.
Stackoverflow is full of the following examples:
FB.ui({
        app_id:'xxxxxxxx',
        method: 'send',
        name: "sdfds jj jjjsdj j j ",
        link: 'https://apps.facebook.com/xxxxxxxaxsa',
        to:to,
        description:'sdf sdf sfddsfdd s d  fsf s '
    });

This is a great alternative - pre-fill the message field with a link to the invite, but facebook ignores all parameters except link and method ....
They are probably outdated, but I didn’t find any mention of them in the changelog ...
I hope for your experience of solving similar questions, thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2014-10-26
@AMar4enko

I have an iOS developer friend who was trying to send a message with content to Facebook.
The only option he found is through their SDK, which uses their official app for this. If it is not installed - everything sailed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question