Is there a way to use the standard facepile social plugin but have it render in German? I need it to read in German for a site I am finishing, but I don't see anywhere in the documentation that points to any kind of internationalization... I was thinking I might try to rebuild it in German but I can't apparently make a call to get all the fans for a fan page (you can only check against one user id at a time for me())
Anyone know if there are any language options for the social plugins?
Maybe you find something useful there: http://developers.facebook.com/docs/internationalization/
Simply said (if you are using JavaScript SDK) you can use the german translated strings if you just integrate their .js in this way:
<script src="//connect.facebook.net/de_DE/all.js"></script>
Related
I want to build a share button for a certain URL, but I want to keep my solution as simple as possible. I would like to avoid having to import any JS framework or toolkit from their SDK to do this.
For instance, in Twitter, I can get that same result with this code:
Share
In here I can customize the URL and the predefined text that the tweet will contain.
Is there an analog way to achieve this for facebook?
Just use sharer.php:
linktext
You can only share links, and you cannot prefill the message, of course. That would not be allowed anyway (see platform policy). Also, Open Graph tags will be taken from the source of the shared URL.
I have a website that supports few languages. Page detects and displays respective language based on browser settings (user can select desired language too).
Now id like to share this website with Facebook share.
According to Fb documentation i need to set a number of meta fields for needed language.
How can i detect a language Facebook is trying to scrape my website for? I was trying to use query`s fb_locale parameter, but it does not seem to pass this one with needed language.
Any ideas?
According to Fb documentation i need to set a number of meta fields for needed language.
This was never available for normal posts/shares in the first place, only for Open Graph stories - and for those it has been removed with API version 2.8, too.
https://developers.facebook.com/docs/apps/changelog#v2_8_deprecations
There is no way any more to do what you want.
I have been reading about using Open Graph (OG) meta tags to improve the way facebook works with your website. I have read two tutorials that say to create an application and use the application ID. But I am not developing an application, all I have is a business page... Can I just the page ID?
Can anybody also point out any good, simple resources around the using OG in my website?
Thanks
The sharer.php method (which is deprecated) allows you to post without an application. The feed/post method appears to require an app_id, though it's possible that there's some way around that. On the bright side, there's nothing complex about creating an application, so, if that's what you must do, I'd say just do it :)
Here is an example of how it works *with an app using the feed/post method (you'll need to click the "Post to feed" link at the top (yes I know it doesn't look like a link!).
and Here is the same exact example only using Sharer (notice that this time it's pointing at a slightly different url (drawImageForFB2.php instead of drawImageForFB4.php).
I use a php to render the tags based on the vidId that I collect but that's neither here nor there... you could just as easily have this as a static HTML page.
The innards of the OG tag are just about identical and the app_id tag in the OG is entirely optional as it pertains to the second example).
Oh, and addthis does it using the dialog api which looks like this
https://www.facebook.com/dialog/feed?redirect_uri=http://s7.addthis.com/static/postshare/c00.html&app_id=140586622674265&link=http://support.addthis.com/customer/portal/articles/381222-optimize-facebook-sharing#.UQ8bBJM9KQk.facebook&name=Optimize%20Facebook%20Sharing&description=
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
Is it possible with javascript SDK check if user has liked my facebook page (I need to check it on my iframe tab (without autorization)).
It's very simple in PHP , but I need to so it with javascript
Haha! I asked this question last week and got a neg review, which apparently infers that I posted the question without doing the proper research...haha! This is what I've found out since.
Facepile, facepile will give you a list of users images who have liked your page...pretty useless as far as I can tell.
Running the old rest api from javascript. While this is being depreciated, not all the functionality has been ported over and as far as I can tell //developers.facebook.com/docs/reference/rest/pages.isFan/ has not been ported over yet. You'll just have to keep your eyes open for when these do change so you can update when they do port it.
Querying with FQL: This looks like the go to for a lot of my stuff. Check out the //developers.facebook.com/docs/reference/javascript/FB.Data.query/ on how to call fql in the javascript sdk. Tables and columns are detailed here: //developers.facebook.com/docs/reference/fql/#tables
Good luck! Let me know if these make sense.