Posted by SunRhythms on January 22, 2013 at 12:12am
2 followers
Jump to:
| Project: | Drupal for Facebook |
| Version: | 7.x-3.3-beta6 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Posting to facebook has an old standard way of attaching the posts to the facebook page by way of hook_nodeapi() in the facebook_example.module which isn't available in D7 There is an alternative which is hook_node_presave($node) which does the same...
The referencing conversation is here...
http://drupal.stackexchange.com/questions/41650/facebookfordrupal-publis...
Comments
#1
fb_stream_publish_dialog() is in fb_stream.module for D7, although I'm not sure it's currently working. If it's not, you can make this a bug report.
I think you'd want to call it from hook_node_insert() (or some hook after node save) because you need a node id to link back to. The example in that stackexchange post just needs upgrade to D7.
(It's possible the code in fb_stream.module is out of date because facebook has changed the API around that dialog - I'm not sure. This may be a case where both the Drupal code needs an upgrade and the facebook code).