How to facebook share of another site url(page) from my site? - facebook

I have implemented facebook share on
www.prod.example.com/aboutus.
When I do facebook share from there, is it possible to share the page that www.example.com/aboutus.
Already i have changed the og:url meta tag as
<meta property="og:url" content="http://www.example.com/aboutus">
But its not affect anything.
Actual result : After share it in FB, if user clicks on it(in facebook) then it should open www.prod.example.com/aboutus
Expected result : After share it in FB, if user clicks on it(in facebook) then it should open www.example.com/aboutus
www.example.com/aboutus ----> Share it in FB ----> on click shared item, it will come back to www.example.com/aboutus ((default behaviour - Working))
www.prod.example.com/aboutus ----> Share it in FB ----> on click shared item, it should go to www.example.com/aboutus (( Expecting for this too ))
Facebook debugger message is here,

Related

Adding FB share button to pages behind sign-in

I have web page which needs users to sign-in (not FB signin though), and need to add share button to it. Issue is when I share that page, it only posts link to the wall. og image and og:description tags are ignored.
btw i am using iframe to show fb:like
Can you please let me know how to solve this issue?
You need to generate open graph tags even when user is not logged in.

How to get Facebook Like to publish a thumbnail, description and link on newsfeed after "Like"

I am adding a FB like button to my page, and currently when I "Like" the page, it only says it on my personal page with a small link to the facebook page associated to my website. I want it to post a picture, description, and the link to my site. I am using the code generated from this page: https://developers.facebook.com/docs/reference/plugins/like/
I debugged it and it says properties are missing even though I have them included in the code...
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.audiblecoffee.com%2Fbeta321432
Any reason on why this isn't working?
<meta property="og:url" content="http://www.audiblecoffee.com">
This will make Facebook use http://www.audiblecoffee.com to look for OG tags, not the submitted URL. Change it to http://www.audiblecoffee.com/beta321432/ (or leave it out) and things'll work fine.

Facebook App Insights for Website "app" shows all zero's?

If you create a FB App for the lone purpose of getting an App ID for XFBML Like Button Plugin implementation should you see data for the app insights?
We have had the XFBML Like Button on our blog for a while now and each post gets anywhere between 5 and 3,000 likes (I realized that not all of these occur on the site itself) but when I go to https://developers.facebook.com/apps/MYAPPID/insights it shows me all zeros for the number of users, shares and performance. Is this normal because my app is really only a way to register the site with FB or could this be an implementation issue? It would make sense to me that I should be getting some stats under the sharing section for "Stream Published Stories Created" or "Links Posted" because that is what the Like button is doing.
Did you include proper facebook metadata on your domain?
You must specify an App ID or an Admin ID as so:
<meta property="fb:admins" content="user_id" />
<meta property="fb:app_id" content="your_app_id" />
http://developers.facebook.com/docs/insights/
Also note:
Why does the count next to my Like Button not match what I see in Insights? The count next to the Like Button represents the sum of Like Button clicks, News Feed likes, News Feed comments, and shares on Facebook.

Sharing an app that is on a facebook fan page

Afternoon,
I have a facebook application that i have added to a facebook fan page, this application has an URL like http://facebook.com/fanPage?sk=app_id. Now i if copy this link and try and share it on the facebook fan page it uses the description/image from the page and not from the application like it want.
Is there any way to change this? The correct meta tags are in place.
Peter
yes there is a way, but not directly. facebook always fetches the meta tags of the top page, as your app runs in an iframe its not fetched.
but you can submit a wallpost (as user or as a fanpage) via the api and give alle information you want. (like image, video, description, title, ....)
see http://www.fbrell.com/fb.ui/feed for an example.
An other variant:
You add a canvas app beside your facebook app. (see the app settings) on this page you add the meta tags for the wallposts, and a javascript which redirects to the fanpage like
top.location.href = 'http://www.facebook.com/mypage?sk=app_id'
when ever you want to share you use the canvas app url. Facebooks greper ignores the javascript redirects but read the meta tags. A user clicking the wallpost is automaticly redirected to the fanpage - tab.

Using Open Graph Protocol to Link Site with Facebook Page

I have a website at http://www.mydomain.com which has a corresponding facebook page at https://www.facebook.com/pages/mydomain/123456789.
I am looking for a way to integrate this facebook page URL into the open graph headers so that when someone shares my page, it actually shares the Facebook page instead of the site's URL.
Is this possible?
You can now do this by setting the og:url meta tag to the url of your Facebook page. Keep in mind that if you do this, other networks that use Open Graph tags will probably share your Facebook page instead of the site's url, so make sure that's what you want.
<meta property="og:url" content="http://www.facebook.com/your-page"/>
Perhaps you already figured this out as this is an old question, but since I stumbled upon it... If I understand your question correctly, you do not even need the ogp meta tags to accomplish what you want to do. All you need to do is go to http://developers.facebook.com/docs/reference/plugins/like/ and input your facebook page url in "url to like", https://www.facebook.com/pages/mydomain/123456789 from your example. Then select the options you want including the "send" button. Then get the code and paste it where you want it in your website. Now whenever someone clicks "like" on your website or clicks "send" to share your website, they will actually be liking or sending the url to your Facebook page and not your website. Is that what you were looking for?