Anyone Using The Facebook Plugin?

Creating and modifying plugins.
Post Reply
locojoe
Regular
Posts: 42
Joined: Wed Oct 25, 2006 12:58 am

Anyone Using The Facebook Plugin?

Post by locojoe »

I've installed serendipity_event_facebook in hopes that it would display comments from my FB page on my blog but not having any luck. I don't know if I have it configured wrong or misunderstand what it's supposed to do.
I also installed the chron job scheduler.

I shared a link to a blog post on my FB page but the comments on that FB post aren't showing up on my blog. I made the post on FB public.
I'm wondering in the set up of the plug in for the username do I use my FB name or what is an alias (I guess) that is in the url of my FB page.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Anyone Using The Facebook Plugin?

Post by garvinhicking »

Hi!

Actually, yeah, it should do that. The alias for a posting like this:

https://www.facebook.com/supergarv/post ... 8171935526

is the part after "facebook.com", you can have a vanity part there, or some alphanumerical number. Can you give the URL to your posting, then I should be able to tell you the proper alias.

How did you configure the cron job scheduler plugin?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
locojoe
Regular
Posts: 42
Joined: Wed Oct 25, 2006 12:58 am

Re: Anyone Using The Facebook Plugin?

Post by locojoe »

My FB url is https://www.facebook.com/aka.LocoJoe

I posted a test blog link on my FB page that you should be able to see as it is set to public. I've commented on it in FB but the comment is not showing up on that post on my blog.

In the Facebook plug in I have my username set to aka.locojoe and I currently have it set to execute every 5 minutes.

The only option I see in the Chron Job Scheduler is "Enable visitor-based cronjobs? " and I have it enabled.

Thank you Garvin.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Anyone Using The Facebook Plugin?

Post by garvinhicking »

Hi!

Bad news. :(

After investigating, the plugin currently calls the FB Graph API like this:

http://graph.facebook.com/aka.LocoJoe/posts?limit=25

This returns in an Error:

Code: Select all

{
   "error": {
      "message": "An access token is required to request this resource.",
      "type": "OAuthException",
      "code": 104
   }
}
So it seems that facebook has removed the possibility for public feeds to return data without a specific access token.

So the plugin would need to be changed so that you would need to create your own access tokens for your own app, grant them permission, enter the tokens in the plugins etc. - a huge hassle, unless we would create a central s9y plugin that would run on peoples FB pages. This however would mean a central server were needed, for which we don't have the infrastructure and manpower to support.

That's pretty sad, the plugin really only used public information which wouldn't need deep-down API access tokens, but Facebook removed them...

It seems there could be a way for "restricted API access" using hardcoded API tokens. But Facebook doesn'T really advertise that, so I cannot find good information on that online...
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
locojoe
Regular
Posts: 42
Joined: Wed Oct 25, 2006 12:58 am

Re: Anyone Using The Facebook Plugin?

Post by locojoe »

Gotcha.

Thanks for checking in to it.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Anyone Using The Facebook Plugin?

Post by garvinhicking »

I'm really sorry about this, that annoys the hell out of me :(
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply