Facebook application - link missing at time of publication in user feed

I use the link in the user feed - everything seems to be valid, but there is no Share link (Share button) ... What am I doing wrong?

try { $su = $facebook->api( "/{$uid}/feed", "post", array( "access_token"=> $access_token, "message"=> "Message", "link" => "http://url", "picture"=> "http://url" ); } catch (FacebookApiException $e) { print_r($e); } 

Thanks in advance, Doori Bar

+4
source share
3 answers

very strange. I have the same problem. I developed the Facebook application and I used the function to post to the user's wall. But there is no Share link on the user's wall. It is only possible to love or comment on it.

If I use this other technique, a dialog box appears displaying the message (on the wall) or “send as message”. (I was also looking for this feature).

And it's good that you can like the resulting post on the wall, AND Shared commented.

This is the javascript code that will help you get this functionality:

 <script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a rel="nofollow" href="http://www.facebook.com/share.php?u=<;;url>" onclick="return fbs_click()" target="_blank">Share on Facebook</a> 

Taken from http://askville.amazon.com/add-Share-Facebook-button-webpage/AnswerViewer.do?requestId=1539369

Hope this helps. It helped me at least;)

+1
source

You can create your own Share link using the steps described in the graphical API here:

http://developers.facebook.com/docs/reference/api/post/

for example, like json: {"name": "Share", "link": "http: \ / \ / www.facebook.com \ /share.php? u = http% 3A% 2F% 2Fvisibli.com"}

Note: ur url must be url encoded.

+1
source

I am sure this is a mistake. To encourage Facebook to fix this problem, please vote for this error by adding your application as a “replay” at the following link:

http://developers.facebook.com/bugs/154484061346461?browse=search_4f903d2ea60569f93022163

UPDATE: Facebook marked the previous bug report as “Fixed”, but NOT fixed. Please vote for the new bug:

http://developers.facebook.com/bugs/252491528185120

0
source

Source: https://habr.com/ru/post/1315025/


All Articles