I am trying to load the facebook feed however it is not finding the facebook.php file that it requires. I can think of a few different ways to overcome this issue however since the module does not appear to adjust the url variable in the Social Stream js I was wondering what everyone else is doing so that we can get a patch rolled.

Comments

Christopher Riley’s picture

There has been a new version made available which requires some reworking of the current module so although this is not a moot point it might be able to be addressed when the module is upgraded to work with the latest version of jQuery social stream.

alex.bukach’s picture

Assigned: Unassigned » alex.bukach
awm’s picture

Did anyone get this to work? Is there a workaround?

alex.bukach’s picture

The issue is caused by the fact that the latest versions of the plugin require server-side script for facebook (due to facebook API changes), so the module should be upgraded respectively. I'm working on this and should have it completed by the end of the week.

alex.bukach’s picture

Title: file not getting added » Facebook feed not working
Status: Active » Fixed

Please update to 7.x-2.x-dev to have facebook support. Please test it on dev site first.

awm’s picture

I have tried this but still not sure if I've gotten the settings right or if it is a bug.
I have an account, a page and created an app with an id and a secret. I also added all necesary setting for the block/pane. but still cannot get the posts to show. I tried to access run facbook.php directlry from the browser ../pathe/to/libraries/facbook.php and got this error

( ! ) Fatal error: Uncaught GraphMethodException: No node specified thrown in ......libraries/jquery-social-stream/facebook/base_facebook.php on line 1252

Edit: I think this had to do with the plugin update. Sorry.

alex.bukach’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

@awm could you please double check you use the latest version of the plugin. If it's so, please check what's returned to the plugin at /js/jquery_social_stream/facebook.

awm’s picture

yes I am using the latest version.
I have been testing and I am a little confused.
1. You have jquery_social_stream.js.inc that has the facebook callback. It is not using the plugin at all. Is this how it is intended to be used or I'm mistaken
2. both the module facebook callback and the pluging have the wrong api endpoints

$graphUrl = 'https://graph.facebook.com/v2.3/' . $page_id . '/feed?key=value&access_token=' . $app_access_token . '&fields=' . $fields;

Here is what it should look like

https://graph.facebook.com/v2.3/1441698036146234?fields=posts&format=json&access_token=SOMEACCESSZTOKEN
alex.bukach’s picture

1. The plugin is first of all jQuery plugin. Yet the code at jquery_social_stream.js.inc does the same that facebook.php of the plugin.

2. I'm not a guru in facebook API, however facebook stream works perfectly on my side. What facebook settings you use?

awm’s picture

Maybe this because facbook changed their API recently and I have created a new app for facebook. So it works for you because your facebook app you are useing was created a while ago so it has gracful fallback. Perhaps to verify if it is an issue, try using a new facbook app/page.
my facebook settings for a test account are the following:

app id: 1595480254065174
app secret: 7fbc80f48730c99175c2388fac268afb
page id: 1441698036146234

alex.bukach’s picture

@awm I have created my facebook app this week for testing the new version of the module.

When asking about settings I meant that in pane or block, not in module settings.

awm’s picture

looks like this is what is breaking it for me

   if ($link_url == $link) {
        continue;
      }

      $link_url = $link;

      if ($type == 'status' && isset($data->story)) {
        continue;
      }

When I add at least 1 link to the facebook page it starts working. I commented the iff statements out and it is working for status's too. I am not sure if this was meant to only work for links that are shared.

alex.bukach’s picture

@awm you should contact jQuery social stream maintainers (http://www.designchemical.com/) regarding this issue, since it's right what facebook.php contains. At least we should know the reason why it's so there.

On other hand we can update the module's code that replaces facebook.php. Could you please experiment with that lines and provide a patch?

awm’s picture

StatusFileSize
new687 bytes

I will try to contact them. In the meantime I am attaching the patch that worked for me.

awm’s picture

Status: Fixed » Needs review
awm’s picture

StatusFileSize
new42.89 KB

@Alex Bukach I am also unable to get images to display and links to be in a hyperlink format from facebook. Not sure if this is related or this the right place for it. I am attaching a screen sho above

alex.bukach’s picture

@awm I did not debug it deeply, however if you check http://codecanyon.net/item/jquery-social-stream/full_screen_preview/2103997, there's no images for facebook as well. As for links, linkify() function is called only for twitter, not facebook, in plugin code, so it's plugin issue as well, not module issue. Could you please contact designchemical for that issues?

awm’s picture

Sure. I will thanks.

alex.bukach’s picture

Status: Needs review » Fixed

@awm the patch at https://www.drupal.org/node/2510866 (already committed) covers the issue you fixed in #14.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.