Hello, i've completed all the steps above, and read the following articles / pieces from the issue queue:
- http://drupal.org/node/812202 (DFF Publish to wall).
- http://www.appnovation.com/integrating-drupal-nodes-your-facebook-stream
- http://www.tech-wanderings.com/drupal-for-facebook-publish-streams
I'm trying to create a checkbox that allows users to publish nodes to their businesses' page on FB.
However, they all seem to rely on the $GLOBALS array keys ['_fb'] and sometimes ['_fb_app'] (or similar) being set. And the function fb_facebook_user() returning a value. However, both of these are evaluating to FALSE in our drupal installation.
I have the following modules enabled:
fb.module
fb_stream.module
fb_user.module
fb_devel.module
And i have successfully registered an application with Facebook for use with the module.
Does anyone have any idea what's going on?
Thanks.
Comments
Comment #1
Dave Cohen commentedWhen you configured the app, did you check the "primary" checkbox in the drupal app settings? That's what causes Drupal for Facebook to initialize that particular app on every page.
That checkbox is recommended for facebook connect apps, but not canvas page only apps.
Comment #2
danmatthews commentedWhereabouts is that tickbox please? if you could give me url? i can't see it.
Comment #3
Dave Cohen commentedEnable fb_app.module and fb_connect.module.
admin >> site building >> facebook apps. Then click 'edit'. Then look at the "facebook connect" fieldset.
Comment #4
yang_yi_cn commentedsame problem here, after I enabled the "primary app" it seems to be app information like app_id in the GLOBALS. But still no user id, which I guest because the user hasn't authorized the app.
The problem is, how do I authorize the user to use the app? Is it something already implemented in the module? I've used Javascript authentication before but after enabled this module the Javascript FB object is still not defined. So I'm kind of lost here.
Comment #5
yang_yi_cn commentedok, never mind, after I add the facebook connect login button it works.
Comment #6
danmatthews commentedThanks for all this, i've got a checkbox working on the node add form. And when i save the node, it's publishing to facebook fine.
But i'm now seeing this error above content all accross the site when logged in as admin (the connected user):
Call to users.hasAppPermission() failed.: parameters uid or session key required 102And i have no idea what to change in order to get rid of it. Any ideas?
Again, thanks for the help.
Comment #7
Dave Cohen commentedMaybe a problem in fb_permission.module. Threads on this queue are for only one issue at a time. Submit another if you need help with that.