Is there a way to set the title in showFeedDialog? - facebook

I'm pretty sure the default title "Publish this story to your friend's Facebook Wall?" is incorrect. When the user publishes the story, it will appear on his and his friends' news feeds, but not on the walls of the user's friends. I'd like to customize the title so that it doesn't contain a lie. Is there a way for me to do that?

There is no provided way to do that. It's possible you could modify the DOM after the showFeedDialog prompt has been created, but you'd have to create your own JS to do that, and it might not be possible within the confines of FBJS.
I'm not sure where you see the problem with the title here however, unless it's a semantic interpretation. The News Feed is a subset of the data that appears on the Wall of a user. When a user confirms a feed dialog that is targeted at a friend, it will create a story on the Wall of the user as well as the Wall of the user's friend (and by extension be part of the respective news feeds as well), hence "publishing the story to your friend's wall".
Wall items do not show up on all your friend's walls... they are your wall items. If a story is part of a news feed, as showFeedDialog facilitates, then the story will be picked up and put into all your friends news feeds... but it is never saved to your friends walls.

Related

How to get all comments from Facebook Page

I'm trying to get ALL comments (and the replies to those comments) from a Facebook page and an specific date range on API Graph.
Not just the comments from me/posts or me/feed, but all the comments my Fanpage gets, including those from Events, Products, Photos (because if you post a collection of photos the me/posts edge just include the main posts, not every single photo attached in the post), Videos, Live Videos, Offers, and, if its possible, Dark Posts (from Facebook Ads).
Is there a way to make this? I tried using me/notifications edge but most of the notifications group several comments together in a single object (E.g. "Bob, John and Mary commented on the link you shared.").
By the way, there is actually and app that makes this, called "Feed Comments" (id=9675640871), actually the responsible to send the notifications when your fanpage gets a comment.
But I don't know how it makes it.
Thanks!

Multiple share buttons that produce different content, within the same page, using Facebook OpenGraph Meta tags

I have a "single page" website. Let's call it "mySite.com/index.html".
There are several different places on my page that I would like users to share via Facebook. Each of these items should display a different image and headline text, when shared on the user's Facebook timeline.
Each of these item posts should link Facebook users back to my website, "mySite.com/index.html", when the posts are viewed from a Facebook timeline.
Example:
On my page, I wish to have two different share buttons:
A. ButtonA: This button would create a picture of an elephant on the user's Facebook timeline, with the headline, "A Beautiful Elephant!". This post on the user's timeline should link back to my page, when the post is clicked.
A. ButtonB: This button would create a picture of a tiger on the user's Facebook timeline, with the headline, "A Scary Tiger!". This post on the user's timeline should link back to my page, when the post is clicked.
The Problem:
My understanding is that in order to create Facebook timeline posts which contain attractive headline text and images, I must use Facebook OpenGraph Meta tags, on the same page that is being linked to. It seems impossible to have two different sets of Facebook meta tags on "mySite.com/index.html", one outlining the 'elephant' post, and the other outlining the 'tiger' post.
The only possible solution I can think of is this:
Create a special 'Facebook Meta HTML Page' for each post I want to make. Each 'special page would only contain the meta tags for the post I wish to outline. "mySite.com/elephant_meta.html"
The body of the special page would be blank. This will work, but there is a problem: The resulting Facebook post will link users to "mySite.com/elephant_meta.html", which is just a blank page. I wish them to be directed to "mySite.com/index.html".
Solution: Create a JavaScript redirect in the body of "mySite.com/elephant_meta.html". This redirect will take users to "mySite.com/index.html".
This will work, but it feels incredibly hacky. Is there a better way?
Still finding my way on the open graph stuff as well, but the way I understand it, you can set og:url to the url that you want users to go to when they click on the link in your story on facebook. So each of your meta pages could point back to your main site page using the og:url meta tag.

Comments social plugin for Action post

I have an app app1 which defines a custom Facebook action act1.
When a user performs this action to an entity (ntt1) in my app, I post to API /me/app1:act1 with URL to ntt1 as its param, so that a post is generated on user's wall saying User act1'ed ntt1 where ntt1 is a link to ntt1's view page (with open graph meta data on its header).
Users can comment or like on this wall post regularly.
Now I want to show users' comments on ntt1's web page as well to share the comments and likes between the Facebook wall and ntt1's view page.
I tried using the Comments social plug-in, but don't know what to put in the data-href to point to the action_instance_id of the wall post.
I know I can simulate a comments box on my page using the graph API (and I've already done so), but this is not making a good ux, because the users need to authorize to my application to view this page (so that the java script API can fetch the comments from the Facebook).
Have you tried just pointing the data-href attribute to
https://www.facebook.com/{user_name_or_id}/activity/{action-instance-id}
…? The docs for using actions say this is the URL you can use to “preview” the news feed story that this published action will generate (or rather has already generated, because without publishing the action first, you would not have an action-instance-id).
If you click on the “x minutes/hours/… ago” link for the feed story for one of your published actions, it should take you to a link that’s build using the same scheme.

Facebook "Like" Button no longer posting to wall since about 2 days ago

I have built several websites, and for some reason none of them will post to my wall anymore when I "like" a blog post, or like the site in general. (Using Iframe) Example:
http://madhatterulti.com/
http://www.reyniersaudio.com/blog/
The funny thing is, I had a friend try it, and it posted to his wall fine. Though, this person did not have timeline enabled, and I do.
Anyone have any ideas?
It appears the "like" appears in my "activity log". By default, the "like" is set to be "allowed on timeline". I am able to change this to "hidden from timeline". This setting implies to me that it should be showing up on the timeline.. yet it is not. Also, I can change the setting to "featured on timeline", but once again, this does not work.
It seems that the way the Like button works has changed (or not really!). I tried liking one of your blog posts and my own website and nothing appeared on the timeline. But reading the Like button introduction:
The Like button lets a user share your content with friends on
Facebook. When the user clicks the Like button on your site, a story
appears in the user's friends' News Feed with a link back to your
website.
And indeed, it appeared on my friend's news feed and ticker!
I suppose we cannot consider the timeline as the new news feed. Because it's not!
AND it seems that there are two ways a liked URL is going to appear on the user timeline which are
1) when the user has something to say, i.e when the user writes something along with the like:
2) if you click on the More Recent Activity block. And allow this activity to appear on your timeline.
Now maybe there are other cases (that I'm not aware of!) for a liked URL to appear in the user's timeline directly (maybe with custom Open Graph objects or a custom Facebook script that would decide for you?).
I linted one of your URLs and it states the the fb:admin and fb:app_id should be specified for better click-thru rates
Like Button Warnings That Should Be Fixed
Admins And App ID Missing: fb:admins and fb:app_id tags are missing. These tags are necessary for Facebook to render a News Feed
story that generates a high clickthrough rate
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.reyniersaudio.com%2Fblog%2Frecording-computer%2Frecording-computer-cpu-benchmarks-sandy-bridge-nehalem-and-bulldozer-processors-compared
I have timeline enabled and it did no post to my timeline at all. Strange huh?
EDIT
Based upon some comments from Roeland on other responses:
The funny thing is, this worked about a week ago. It WOULD post to my
timeline. In addition, if I go to my "activity log" it shows that I
liked something. It also supposedly lets me "allow it on the timeline"
which is the setting by default.. yet it does not show up on my
timeline
I'm wondering if it could have something to do with too many people reporting the stories as spam, or the app id was hijacked and used for spam purposes (or the domain/ip being marked as abusive, etc). Maybe this has caused Facebook to become more cautious when "showing" this liked content. ifaour has seen the content on his feed and timeline, however I could not get it to show.
My concern is that no app_id was specified and not admin was specified either. You can reuse the same app_id with many comments/like buttons (contrary to your assertion that you must have a new app id for each like button...not sure where that came from).

Dialog Feed to post on friends's wall AND own wall

In my app http://www.facebook.com/citynumbers?sk=app_195571338990 I use a Dialog Feed to let users post on a friend's wall. It works fine, but it could be better:
After posting to a friend's wall nothing is posted to my own wall/timeline. Can this be done with the Dialog Feed or should I use another method?
I noticed when I do not type an additional text with the post, it does not appear on top of my friends page when this friend is already using the new FB Timeline (unless he or she changes some settings fro the app). Is there a way to fill in a default text with the post where it says "Write on [user]'s wall..." in the dialog? Or another workaround?
This is the url that opens the dialog:
http://www.facebook.com/dialog/feed?app_id=195571338990&link=http://apps.facebook.com/citynumbersfriends&picture=http://citynumbers.com/pics/facebook/clubbing_tn.jpg&name=Voor 2012 wens ik je: veel leuke avonden met je vrienden in de kroeg!&to=[user_id]&caption=Stuur%20ook%20een%20nieuwjaarswens%20naar%20jouw%20vrienden!&description=Powered by http://citynumbers.com&redirect_uri=http://www.facebook.com/citynumbers?sk=app_195571338990
The feed dialog posts only on the timeline of the person selected. If you want the user to make two posts, you need to use the dialog twice.
The second issue is a bug: https://developers.facebook.com/bugs/304599676247502