Facebook App - Share link is missing while posting to user's feed - facebook

I'm sharing a link on a user's feed - everything seems to be valid, but there's no Share link (Share button)... What is it that I'm 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

very strange. I have the same problem. I have developed a Facebook App and I used a function to post on the user wall. But on the user Wall there is no "Share" link. It's only possible to like or comment it.
If I use this other technique, a dialog showing to post (on wall) OR to "send as a message instead" is displayed. (I was looking for this feature as well).
And the good thing is that the resulting post to the wall can be liked, commented AND Shared.
This is the javascript code that can help you to obtain 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 ;)

You can create your own "Share" link using Actions described in the graph API here:
http://developers.facebook.com/docs/reference/api/post/
for example as json: {"name":"Share", "link":"http:\/\/www.facebook.com\/share.php?u=http%3A%2F%2Fvisibli.com"}
Note: the url param u must be url encoded.

I'm fairly confident this is a bug. To encourage Facebook to fix this issue, please "vote" for this bug by adding your app as a "repro" at the following link:
http://developers.facebook.com/bugs/154484061346461?browse=search_4f903d2ea60569f93022163
UPDATE:
Facebook marked the previous bug report as "Fixed" but it is NOT fixed. Please vote for the new bug:
http://developers.facebook.com/bugs/252491528185120

Related

Posting a link to facebook wall fails on external links

I'm using the fb_graph gem in a Rails 3.1 app. I'd like for users to be able to post links to their Facebook wall from my site. Here's my code that posts the link:
me = FbGraph::User.me fb_token
me.feed!(
:message => message,
:link => link_url,
:name => link_name,
:description => link_description
)
At first glance, this works great. The link is posted to the user's wall and the user's message and the link description appear perfectly.
The problem is that only links back to my site work. If a user clicks a link on their facebook wall that happens to go to another site, then they see a facebook error that says:
An error occurred with my-app-name. Please try again later.
During authentication, I'm requesting publish_actions and publish_stream. Is there another permission that I'm missing? Or could the problem be that my FB app is not setup propertly or I'm not posting the link in the correct way? Any assistance is greatly appreciated!
Thanks!
Check that you have the migration „Stream post URL security disabled in your app settings – if it’s enabled, links in posts can only point to the apps canvas page or website.
Ok, I found a workaround to this issue. Instead of using the feed! method, the link! method works perfectly:
me.link!(
:message => message,
:link => link_url,
:name => link_name,
:description => link_description
)
This isn't an entirely satisfying answer to the question because it's more of a workaround, but I figured I'd throw this out there if anyone else runs into the same issue.
If anyone has an answer to the actual problem to my original question, I'll gladly switch the correct answer!

Facebook embbeding Iframe on friends wall

I am primarly ASP.NET(HTML,Js) programmer and I don't know anything about Fb apps. Recently I stumbled on a problem. I have web application that generates image buttons and generates code as HTML or Iframe for user to post on different websites, however as far as I know: It is not possible for user to embbed Iframe or post image wrapped with link to friends wall?
So before I start researching how to do anything on Facebook and go on wild goose chase, I just wanted to check with fellow programmers that might have experiences with this kind of stuff is it even possible to do this on Facebook?
If it is possible, can you give me some hints how the process goes or point me to some articles?
Any help is appreciated, thanks!
No, it is not possible to post iframes to a user's wall.
To be more specific, to post to a wall, we use Feed dialogs (with FB.ui), You can derive what you can and can't do from the list of parameters that FB.ui gets (scroll to "properties" in the feed dialog doc)
To show the "post to wall" dialog, you need to do something like this:
FB.ui({
method: 'feed',
link: "link",
picture: "picture",
name: "name",
caption: "caption",
description: "description"
}, callback);

How do I make Facebook comments public for all on my website?

I've added facebook comments to my website using the following steps:
I created a new app herehttps://developers.facebook.com/apps/
In the auth dialog page for the app, I set 'default activity privacy' to 'Public'
I got the code for the comments box here https://developers.facebook.com/docs/reference/plugins/comments/
I used the HTML5 version of the code and added it to my site in the two places specified - right after the body tag and where I want the comments to appear.
I then opened the comments moderation tool for my new app.
https://developers.facebook.com/tools/comments?view=recent_comments
I clicked on 'Settings' and turned on 'Make every post public by default'
I also listed myself as a moderator.
I also added
<meta property="fb:app_id" content="{YOUR_APPLICATION_ID}">
inside the head tags for the page.
When I go to my site - the comments box appears to work ok. I can make a comment, but I can only see comments made by me. I cannot see comments made by people I am not friends with. How do I fix this problem? I'd appreciate any help.
Thanks
Every comment you leave on a facebook-comments driven web site is public, the same way it is on a fan page. Even a non facebook member can leave a comment.
I am looking for a way to turn it off and get the same permissions you have on your facebook wall. Currently, everybody who has the link can see the page content and all previous comments.
Had the same issue and figured out that Facebook grabs urls differently for displaying and submiting comments.
If the url you're providing him in data-href (e.g. short url) is different than the window.location url (url in address bar), then it's probably the case.
P.S. I know that the question is from 2011, but someone else may show up with the same problem.

Facebook App Coding: Friend selector formular without FBML?

Hey guys,
as far as I know are FBML Codes not working anymore on Facebook unfortunately..
So does anybody< here has an idea on how to use the friend selector formular which could be used easily via FBML code in our facebook applications??
would be great if someone could help (not only me ;) ) out!
thanks!
You may want to check out the requests dialog reference page. It looks like it may be what you need.
Do you mean the Invite Friends UI overlay? You're probably not going to find an FBML solution since Facebook are retiring it. This is how to do it using the Javascript API:
FB.ui({ method: 'apprequests', message: 'This is my message'});

Post on Facebook Wall

It seems that the way of posting to your wall or friends wall has change. Can anyone understand how you can do it?
Changed since when? Facebook seems to change things every quarter. Some of the latest ways are using the Graph API:
http://developers.facebook.com/docs/reference/dialogs/feed/
or using the javascript SDK and the FB.ui method:
http://developers.facebook.com/docs/reference/javascript/FB.ui/
FB.ui({
method:'feed', to:1234567890123, name:'Check this out', link:'http://link.com',
description:'very funny, a must see'
}, function(response) {
//log response
}
)
You just go to your friend's page and use the normal 'Share / Write something' functionality - it will appear on your friend's wall.