I am attempting to post a message to a user's wall that contains a set of different website links by means of a GET to the feed dialog endpoint (https://www.facebook.com/dialog/feed?...) or using FB.ui
e.g.
Hey I just read these stories:
www.example.com/story1
www.example.com/story2
Check them out!
Is it possible for a message to contain links? I imagine any html inserted into fields such as "description" or "properties" does not work, but I just wanted to confirm if there is another way?
Thanks!
It is possible, please have a look at the Send Dialog url, the user would have to manually action the link (which hey would have to do anyways) but this should allow sharing of links.
The code would look something like
FB.ui({
method: 'send',
name: 'People Argue Just to Win',
link: 'http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html',
});
Related
I need to change the title of my website, because now the title is "Home".I want to add a "like" button to the website and I want something different instead of "Home" for the title. I tried changing the meta tag for "title" but running the url through the facebookb debug tool it says:
Attempted Frozen Title Change It appears that you are trying to change
the property og:title from XX to XY. If so, you are not allowed to for
this object because too many actions have been published against it.
How can I change the title? Thank you!
Sorry if my english is full of mistakes.
There isn't any way to change it. Facebook is basically telling you too many users have the object with the original title connected on Facebook. Changing after too many actions can be seen as an attempt to be misleading.
I'm trying to get the list of all the pages that a user "likes", both Facebook pages and external pages.
I know that the facebook pages (such as http://www.facebook.com/DealExtremeFans) I can obtain them with the "me/likes" value from the Graph.
But for a page such as (http://mashable.com/2012/01/20/advertisers-this-is-what-an-nfl-fan-looks-like-infographic/) that has a like button (under the title) I don't see how to get those likes.
Is this possible? If not, are you planning on adding support for this any time soon?
Thanks
EDIT:
According to the response below, even though they are added via the "like" button they are really "Shares".
Now my question is, how do I get those shares? what's the graph for them? I tried "me/shares" but doesn't exist.
Is there a way?
Yes it is possible, but it looks like that URL only has shares:
Click here.
And here is a link to a tutorial for getting the data via jQuery.
I'm using the Facebook comments box plugin..I have many pages with different get urls (example.com/id.php?id=1,example.com/id.php?id=2), and I'm attempting to give each its own seperate comments box. Everything is working fine except I get a warning telling me to add the href to the like button so I did. The only problem is, now a moderation link doesn't even appear..Here's code
" href="example.com/example.php?id="> ...I also included all meta tags I'm 100% sure..
I figured out the problem..Basically, if the page requires a login of some sort to view the contents, Facebook's bots don't have access to the meta tags.Therefore, you should add the meta tags to the page that a non-logged in user would see..This really caused me trouble and I hope this helps someone!
How can we display a different string in a custom action caption using text templates or formatters if a Profile property is null?
Facebook displays a default caption for an action if a string property is not set or is empty.
For example, a caption for an action with a Profile object, Cooked with {SomeProfile}, displays the profile's description or something else if SomeProfile is not defined.
Another example
I have an Cook action type. Cook is connected to a Profile object type. Cook has another Profile action property SomeoneICookedWith. I set the caption for Cook to I cooked this with {SomeoneICookedWith}.
If SomeoneICookedWith is not empty and set to URL to John's profile, the caption on the timeline displays I cooked this with John.
If SomeoneICookedWith is empty, the caption on the timeline displays John is on Facebook. Join Facebook to connect with John and others you may know. Facebook gives people the power to share and makes the world more open and connected..
It displays the og:description of the object if the action is aggregated or if the News Feed attachment isn't configured.
If you are trying to link directly to a Facebook profile, you can't control the og:description. I would recommend making proxy pages with your own metatags that just redirect users but then you control the tags instead of us.
I've found that the og:description tag doesn't seem to be working with the og beta. The linter grabs my the description and my other custom object properties just fine, but when actually posting them, the only thing that shows up is the image, link, and the title. Description and everything else are left off, and the default 'Description' shows up. I'm beating my head against a wall since the Linter says it's working fine but it's not in actuality.
Paul's answer sounds ideal, but if you redirect the page, then Facebook follows the redirect and grabs the tags from the redirected page. Has anyone else run into this, and what's a good solution?
I have a like button on my site, i have defined all the og: meta tags and its works for most of most pages, but doesnt for 2 other pages. Its using a template so its exactly the same code, how can it work for some but not all pages?
For the pages it doesnt work, it doesnt pick up the title, image, link or description, basically any of the meta tags information.
Working like button....
http://www.imoffonholiday.com/holiday.php?id=des_home&destination=faliraki
Not working Like button
http://www.imoffonholiday.com/holiday.php?id=des_home&destination=ayianapa
Any ideas?
One usual problem is caching. If you were testing and at some point had the wrong data in the metatags facebook will cache that info.
One simple wat to test if it is a caching issue is to add a random param at the end of the URL.
so www.yourpage.com/index.php?cacheBust=1
Running the Facebook Debugger often clears those kind of things up. It appears to refresh the FB cache when you do.