facebook feed method link by default adding fb_ref=Default at the end how to remove that - facebook

I am using feed method for posting into my facebook wall from my website using asp.net and jquery/javascript initially it works fine but suddenly in the link at the end added fb_ref=Default I don't know why it happened I want to remove that please help me. I need answer as soon as possible kindly help me. Thanks.

You can resolve this issue via using .htacess by adding this above your current rules will remove everything starting from the &fb_action.
RewriteRule ^(.*?)&fb_action /$1 [L,R=301]
But this is work around and the correct way is using Share Dialog rather that Feed Dialog.
The main different between Feed Dialog vs Share Dialog
as you can see
https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.0
https://developers.facebook.com/docs/sharing/reference/share-dialog
Feed Dialog:
You can add the Feed Dialog to your app so people can publish individual stories to their timeline. This includes captions that your app manages and a personal comment from the person sharing the content.
Share Dialog
The Share dialog prompts a person to publish an individual story or an Open Graph story to their timeline. This does not require Facebook Login or any extended permissions, so it is the easiest way to enable sharing on web.
So in you have to use:
Feed Dialog ==> for Pages you developed so you can change htaccess
Share Dialog ==> for Pages you can not change it's code

Related

How do I migrate Facebook Comments from one site to another?

Hi i'm The owner of a Facebook app with this ID: 187382088033833.
I've made new website, and i want to recover my old comments made with my application.
E.g. in this page, in the old version i got a lot of comments: http://www.youris.com/Environment/Bees/Bees_restored_to_health_in_Italy_after_this_springs_neonicotinoidfree_maize_sowing.kl
why now i can't see the old comments?
can you help me?
According to the Facebook Comments Social Plugin documentation, comments are tied to a URL for the page that they were made on. Migrating to a new domain, or moving your page to a new URL, without keeping your comment social plugin URL setting the same as what it was in the past, will cause you to lose your comments.
I would try changing your href setting on your plugin to the old URL for the page you're loading. You may have to maintain that old page as a redirect to the new page should Facebook try to verify it's existence before rendering the comments plugin, or should someone click a link that is published to their news feed so they get redirected to the appropriate place.

Creating a Facebook App

I am building a website for a client. He has a Facebook page for his business. On the homepage of his site, he wants a feed that will pull in all the updates from his business' Facebook page.
Now, I felt this would be very easy to implement (maybe it is) but I have scoured the Facebook API for any simple way to do this. I am having a lot of trouble understanding which way I should do this. I've settled on using JS to access it, but have no idea where to go from there.
Do I need to create an app? If so, which options do I select so I can access the clients facebook page?
How do I get my app that I've created to show up so a user can authorize it? I have so many questions, and Facebook isn't very good at giving me answers.
Any help is greatly appreciated.
I would suggest you just use the facebook page's RSS feed.
Example
Take his page URL e.g.
https://www.facebook.com/pages/Lazery-Attack/6001014870
Take the number at the end of the url off, and plug it into the facebook feeds URL e.g.
https://www.facebook.com/feeds/page.php?format=rss20&id=6001014870
Voila, you now have an RSS feed you can integrate into the website you are building.
URL Breakdown
The URL is broken down the following way:
https://www.facebook.com/feeds/page.php?format={feedFormat}&id={PageID}
Vaid feed formats are:
RSS - rss20
Atom - atom10
JSON - json
Other Examples
Atom
https://www.facebook.com/feeds/page.php?format=atom10&id=6001014870
JSON
https://www.facebook.com/feeds/page.php?format=json&id=6001014870
Take a look at the facebook API, right here: http://developers.facebook.com/docs/reference/api/page/
You can give it a try here:
http://developers.facebook.com/tools/explorer/?method=GET&path=19292868552%2Fposts
The like box: http://developers.facebook.com/docs/reference/plugins/like-box/ also has the latest posts available
The simplest way is to add a Like Button to the page and make sure "show Stream" is checked on as this will show all recent posts. You can customise the appearance also (e.g. width, height etc).
No App or messy API calls needed!
Try it out here and simply paste the resulting code into your webpage:
http://developers.facebook.com/docs/reference/plugins/like-box/
Not an app, but the Facebook Social Plugins over here at Facebook For Pages

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.

Deprecated FB 'Share' Button to Share FB Page w/ iFrame Content

I am building a tab for a Facebook page, and this tab contains the deprecated share button, outlined here - http://developers.facebook.com/docs/share/
By my understanding, the default functionality of this button is to share the URL of the page it currently lives on. But I don't want to share the url of the iFrame contents, but rather, the Facebook page, with whatever the user is currently viewing within that iFrame.
Currently, I have it hard coded to share the URL of the FB page itself but have been told by my boss that this is not what they want. The active page within the tab must also be shared along with it.
Hopefully I've made this clear enough. Thanks in advance for any help or consideration with this issue.
Cheers!
Since the various states of your app/tab are not affected by the parent document's URL, this isn't possible.

Facebook like button not working

Facebook like button not working on my site.
It goes from like back to default as if it isn't passing some validation.
http://www.imageizer.com/
Once the problem is detected and solved, I'll edit the question to represent a minimal example that will benefit the SO community. Unfortunately I can't pull out the problem out yet as I'm not sure what it is..
Here is a screencast demonstrating the issue http://see.weareinto.com/8Hbq
I believe this is a problem happening on facebook's end. But, there is a way you can fix it... Just copy the URL of your page and enter it in the Facebook LINTER tool here:
Facebook LINTER -> https://developers.facebook.com/tools/debug
I'm not sure of the exact details of why this works, but from what I've been able to gather, when you run the LINTER tool on your URL it will also update the cache facebook has for your URL. The error with the button working is on the facebook side, so by running this tool and getting facebook to update their cached data for your page, the like button starts working again. I've seen this broken facebook button occur for a few different reasons, one being that a page used to use the old facebook share button. When you add the new like button to a page that used to use a share button, the like button won't work until you run the page through the linter.
Bottom line is doing this will fix your like button. If your facebook button doesn't work on a page, run it through the LINTER tool. Hope this helps!
If you are on Wordpress and you have the "Facebook Comments" plugin enabled, uncheck "Include OpenGraph Meta Information" at the very bottom of the Facebook Comments settings page. This was screwing it up for me.