Facebook like and recommendation button - facebook

I am integrating facebook like/recommend button on website "panjabiwave.com"
For recommend there is url ex. panjabiwave.com/video/22
Link for checking the recommendation is panjabiwave.com/videorecommend.
But the problem is when a user recommend a video .it is not reflected on the
panjabiwave.com/videorecommend link
Please suggest where i am doing wrong
Thx in advance

Recommend is only used for one single url at a time. There is no way to specify the url being recommended and then another for a specific url that the user will land on. Your best bet for passing the video # to the videorecommend page like
http://panjabiwave.com/videorecommend/22 which then can disaply the correct og meta tags (ogp.me) for the video that's really located at http://panjabiwave.com/video/22

Related

How hide tilte, decriptions, change url when I shared link to facebook like this? Thanks

How hide tilte, decriptions, change url when I shared link to facebook like this?
https://i.stack.imgur.com/FyDAh.png
When I click the image, it leads to new.
How can I do this?
Thanks
The intruction to help us do that.
Facebook takes the data from the Open Graph tags in the page source. If you want to redirect to another website, you can do so with JavaScript - Facebook does not parse JavaScript.
I would not advise doing this though, people should know where they go before they click on a link - and not be redirected somewhere else.

Facebook Open Graph: URL to use for sharing?

I am creating a customised Facebook share button. The idea is upon clicking on the Facebook share button, it will pick up the meta tags on the page and prefill the share information with a title, description and image that have been curated.
What URL should I be using for the button?
There is https://www.facebook.com/dialog/share
and https://www.facebook.com/sharer/sharer.php
I heard the latter has been deprecated? And you can append a whole bunch of information to the URL as well?
I can't quite figure that out.
sharer.php is not deprecated. It was, for some months, but you can definitely use it. The benefit of using sharer.php is that you don´t need to create an App. It´s the easiest way to implement sharing.
Keep in mind that sharer.php ONLY takes the URL as parameter, everything else will get loaded from the Open Graph tags.
For example:
https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Ffacebook.com%2F

Share image including some attributes (e.g. description) on Facebook over web without app validation hassle

I want to share an image from a website on Facebook and pass some attributes (e.g. a description) to the status update, all done by clicking on a link.
A few months ago this worked fine using the sharer.php but by now this script just accepts a URL as parameter and scrapes the target site for Open Graph meta tags. This new approach isn't very helpfull if you just want to share elements on a page instead of the whole page.
Yeah, I could create an app and use the feed dialog to achieve my goal. But I honestly don't want to walk through the tedious app validation process just to share an image with some additional info!
So, does anyone know of a way to avoid this app hassle? Perhaps some undocumented parameters for the new implementation of the sharer.php?
There's no need for app validation - as #CBroe correctly stated! So the feed dialog IS an adequate solution!
Background: I assumed an app needs validation to go live. But I just didn't set up my app properly to make it available to every Facebook user.
See the comments to gloat over my stupidity. ;)

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

Sharing a Facebook URL (new way)

The site I work for is currently using the old sharer.php mechanism for sharing a URL.
We have it designed into our site, but want to incorporate a new method of sharing it.
The shares that we have now.. currently have this structure:
http://mysite.com/shorturl
www.mysite.com
Our users are clicking the second URL versus the first URL, and we don't know how to get rid of the www.mysite.com clickable part.
So with the new Facebook like/recommend structure here are my questions:
1) Is it possible to skin the like/recommend how you used to could the Share link? Use our own custom button to open the share popup or even do it on the page, but just fit it into our style? (Our button is much larger than the Facebook like/recommend button).
2) Is it possible to change, make non-clickable/disabled, or remove the www.mysite.com link from the sharer.php method?
Thanks in advance!
1) No skinning available with the new one thanks to many bone-heads who ruined it for us by abusing that privilege.
2) I cannot figure out what you mean by that. But as a guess, Facebook will count www.example.com as the same as example.com in the counts as long as they end up at the same content with the same og meta tags. For more information about how the og tags work, see http://ogp.me.