Closed (fixed)
Project:
Drupal for Facebook
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2007 at 15:13 UTC
Updated:
13 Dec 2007 at 03:41 UTC
Hi there,
We've added the facebook module etc and it seems to be working ok. We've got an app working on Facebook which is: cancerbackupdonate : http://www.facebook.com/apps/application.php?id=5955903468
however, it just seems to have an about page and not pull anything off our drupal pages. I think the answer is something silly, but the callback url is http://topfootballtubes.com on which we have some random nodes, but you can't see those nodes on facebook.
How do we actually get more than an about page appearing...how do we get the nodes to appear?
PS thanks Dave for getting this rolling, it's going to be a great boost to the drupal community.
Comments
Comment #1
Dave Cohen commentedThere's not a lot of documentation at the moment, but you might find these screencasts helpful:
http://www.dave-cohen.com/node/2246
And by the way, I can't follow the link to your application. Perhaps it's still in "developer only" mode. But the URL to see canvas pages will be something like apps.facebook.com/whatever, anyway.
Comment #2
thomasmuirhead commentedHi Dave,
thanks for taking the time to have a look. I've been looking at the screencasts...they're great.
the app address is: apps.facebook.com/cancerbackupdonate
we get an error referring to php4/5 at that address.
"Fatal error: require_once() [function.require]: Failed opening required 'facebook-platform/php4client/facebook.php' (include_path='.:/usr/local/php5/lib/php') in /home/topfootball/www/www/modules/fb/fb.module on line 52"
I was a little confused by where to put the Facebook Api stuff. The Readme.txt says:
"Download the facebook-platform PHP code from developer.facebook.com.
Extract it into this directory, so you have modules/facebook/facebook-application/
Make sure you extract the client API for PHP4, and simplexml, as instructed by Facebook. Note that even
if you are running PHP5, Drupal for Facebook uses the PHP4 client API, and will continue to use it until
Drupal supports PHP5."
so the confusion arose with modules/facebook/facebook-application/ so we created a directory in modules called facebook, with another within it called facebook-application...but were curious as to whether you meant that or having a directory called facebook-application within modules/fb, or if you meant fb-app instead of facebook-application. This may not be the reason for the error...any ideas?
(that's all probably pretty confusing, sorry).
I've also posted elsewhere on the newest actions module you describe in the screencast. I just don't know where to get it, a link would be fantastic. (also I'm assuming it would just replace the current actions module on the server, or does some code need to be added to the current module?)
Thanks again for this module and the screencasts...if I get to a stage of understanding it, I'd be more than happy to help build up the documentation for others.
Comment #3
Dave Cohen commentedThe reference to "modules/facebook" in the README.txt is a typo. It should be "modules/fb". There was a time once when the directory was named facebook, but that module name was taken on drupal.org. Anyway, I just checked in a fix to README.txt.
Regarding actions, you have to check out the latest code from CVS. As you may know, actions moves into core in Drupal 6. So the CVS HEAD code in the module is still for Drupal 5.x. But no build of it is automatically created. I don't want to spend more time on the old actions API knowing that it is changing going forward.
If you contribute documention that would be awesome!
Comment #4
thomasmuirhead commentedHi again Dave,
So happy to do documentation, anything to repay the work you're doing...I'm sort of making notes as I go to try and get it as noobielicious as possible.
I think we're falling down on the api bit I mentioned above...it's not the directory names. I think it's which PHP4api and simplexml files to add in to the modules/fb/facebook-application/ directory from facebook? Could you possibly copy a list of the file names you have within that directory?
so, to run over that again...we take the files you can download from the facebook api page: http://developers.facebook.com/resources.php called: PHP (4 and 5) Client Library and
Java Client Library and add them to a directory modules/fb/facebook-application. Is it all the files from these libraries or particular files?
thanks
Comment #5
Dave Cohen commentedIn your modules/fb directory should be something like:
Comment #6
thomasmuirhead commentedthank you..that was exactly what I needed...I managed to find the simplexml and from this know where to put it...thanks
Comment #7
Dave Cohen commentedComment #8
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.