Tag Archives: Facebook

Drupal 7 – Get Facebook Page feeds by Aggregator

You can get the Facebook Page content by the following URLs:

RSS 2.0
http://www.facebook.com/feeds/page.php?format=rss20&id=[fb-page-id]
Atom 1.0
http://www.facebook.com/feeds/page.php?format=atom10&id=[fb-page-id]

 

Where the [fb-page-id] could be found by browsing your Facebook Page -> Edit Page. That URL should have the following format.

https://www.facebook.com/pages/edit/?id=%5Bfb-page-id%5D&sk=basic

Continue reading Drupal 7 – Get Facebook Page feeds by Aggregator

Create Google Plus Share hyperlink for specific URL

We have talked about how to create share link on Facebook and Twitter.
Create Facebook Share hyperlink for specific URL
Create Twitter Share hyperlink for specific URL

So this time is the Google Plus share link.

https://plus.google.com/share?url=<url>

 

https://plus.google.com/share?url=https://eureka.ykyuen.info/about
Continue reading Create Google Plus Share hyperlink for specific URL

Create Twitter Share hyperlink for specific URL

We can create a Twitter share hyperlink just like what we did for Facebook share as we mentioned before.
Create Facebook Share hyperlink for specific URL

For Twitter sharing, it can be done as follow.

http://twitter.com/intent/tweet?text=<tweet>&url=<url>

 

Try the following link.
http://twitter.com/intent/tweet?text=About+Eureka!&url=https://eureka.ykyuen.info/about
Continue reading Create Twitter Share hyperlink for specific URL

Addthis – Enforce Facebook Like Button to English

AddThis is great tool for bringing the benefits of social networks to your website. By default the Facebook Like Button provided by AddThis will be translated into different language based on the browser user agent. But you can enforce it to English by adding the the fb:like:locale attribute to the code as follow.

...
<a class="addthis_button_facebook_like" fb:like:layout="button_count" fb:like:locale="en_US"></a>
...

 

Done =)

Reference: AddThis forum – Default “Facebook Like” button language

Facebook Javascript SDK – Logout with OAuth 2.0

Now we have OAuth 2.0 working with the Facebook Javascript SDK as mentioned in the last article.
Facebook Javascript SDK – A Simple Login Page with OAuth 2.0

The above example is incomplete as there is no logout link. Replace the fb-login-oauth2.php as follow. Continue reading Facebook Javascript SDK – Logout with OAuth 2.0

Facebook Javascript SDK – A Simple Login Page with OAuth 2.0

A few months ago, i published several posts about Facebook Javascript SDK but they no longer work since Facebook updates to OAuth 2.0. So this post is the updated version of
Facebook Javascript SDK – A Simple Login Page
and it should work works with OAuth2. Continue reading Facebook Javascript SDK – A Simple Login Page with OAuth 2.0