Page 1 of 1

Anyone Using The Facebook Plugin?

Posted: Fri Jan 03, 2014 3:27 pm
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.

Re: Anyone Using The Facebook Plugin?

Posted: Mon Jan 06, 2014 4:46 pm
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

Re: Anyone Using The Facebook Plugin?

Posted: Tue Jan 07, 2014 1:59 am
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.

Re: Anyone Using The Facebook Plugin?

Posted: Tue Jan 07, 2014 1:17 pm
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...

Re: Anyone Using The Facebook Plugin?

Posted: Tue Jan 07, 2014 2:41 pm
by locojoe
Gotcha.

Thanks for checking in to it.

Re: Anyone Using The Facebook Plugin?

Posted: Wed Jan 08, 2014 11:20 am
by garvinhicking
I'm really sorry about this, that annoys the hell out of me :(