Hey there. Very great module and support (you all helped a lot with my Twitter issues!).

I'm trying to connect to Facebook so I can import posts from a page. Basically, I want to have a centralized "Social Media" View that will have posts from Twitter and Facebook, etc. I have Twitter working well, but Facebook is more difficult. Maybe other folks are having the same issue as I am.

I followed the tutorial (http://thereisamoduleforthat.com/content/ingesting-facebook-stream-using...) and everything was going well UNTIL... (it appears Facebook app stuff changed a bit since the tutorial)

I am stuck on creating the Facebook app and getting read_stream accepted. Facebook has some verification and review process to allow that in the app. Am I missing something? I filled out the basic information for the app, but Facebook rejected my request for read_stream. Any thoughts or help would be much appreciated.

Let me know if I can provide more information to help troubleshoot.

Comments

infojunkie’s picture

Status: Active » Closed (works as designed)

Yes, it does appear that the "read_stream" permission is now restricted. This permission is needed for the FB Graph API /user/home that I use in the tutorial. If you're calling another API endpoint, you may not need this particular permission.

But in general, there's not much this module can do about such issues.

trailrunner’s picture

OK yea that's what I figured. I am not all that familiar with interfacing with Facebook, so I'm assuming that I'm not going to be calling another API endpoint.

Anybody have any tips on making an "app" that will get this permission approved? In reality, the only reason I (or maybe others) am making this app is just so that Drupal can read the stream to import it. It seems to be a shame that it is much more difficult to import than Twitter.

trailrunner’s picture

Great news! I was able to figure this out. Hopefully this helps other people that are running into the same issue...

The read_stream permission is only required if you want to look at a person's profile. I just needed to look at a public facing page. If you are using Feeds to ingest posts for an organization, company, etc, then you should be fine. There is no restriction on grabbing the posts, events, etc from a public facing page.

Use the following Feed importer URL format:

https://graph.facebook.com/v2.0/{yourfacebookpagename}/feed

You'll need to make sure that the context in your JSON feeds parser setting is set to $.data.* and make sure that your consumer key and secret are entered. Oauth2 settings as follows for Feeds:

Site Identifier = fb
Access token url = https://graph.facebook.com/oauth/access_token
Authorize url = https://graph.facebook.com/oauth/authorize
Method = GET

Facebook App settings: Really the only thing I did was set my website URL to my actual website URL. Nothing fancy with putting a callback specific URL.

infojunkie’s picture

Thanks for the update - good to know.

wikibi’s picture

Trailrunner thanks for the update. End of 2016 let's hope it still works. :)