I started port of fb_example.module to Drupal 7. this patch will enable XFBML like button to all node pages i.e. the patch ports function fb_example_link to Drupal 7 since hook_link() does not exist in Drupal 7

Comments

amir_c’s picture

Title: Initial port of fb_example.module - enables XFBML like button to all node pages » Initial port of fb_example.module - enables XFBML like button to all node pages + publish to Walls when users submit node & comm
StatusFileSize
new8 KB

Hi again! I continued to port fb_example.module to Drupal 7. this patch will enable publishing to Walls when users submit/update node & comments i.e. it ports functions: fb_example_form_alter, fb_example_nodeapi and fb_example_comment to D7. Works fine for me.
Hope you find it usefull. Please let me know if you have any issues with it.

TravelTechie’s picture

Status: Needs review » Reviewed & tested by the community

I have installed and tested the patch. Confirm that it is working on article nodes. One issue when patching was the last patch for fb_stream.info. Got an error that the hunk failed. It looks like like 10 might be be off from the latest Drupal for Facebook module update. Manually updated that myself. Good work on the port.

TravelTechie’s picture

Good work on keeping up with the switch over to Drupal 7 and submitting these patches for the modules. I have an question that could probably be answered here.

When logged into facebook and posting a comment on an article node on my website the page reloads after it is submitted. Good! The checkbox for submit to facebook is checked and an iframe comes up for the user to submit the comment, but it loads way down
on the page. Checking for an answer I found that it looks like the iframe is passed the position of the parent element in the fb_tab_module.

If I want to change the position of the iframe so it loads more toward the top would this be a PHP issue or a CSS fix? I assume PHP, which I am not to good at yet. Tlhis issue might be entirely avoided if there was a way to publish directly to the users stream given the correct permissions.

Any thoughts? Thanks for any advice.

amir_c’s picture

Thank you for testing the patch. It's always good to hear that the code is working fine for more people than just me.

About your question above: You could try to disable javascript function called FB_Connect.centerPopups in fb_connect.js and see if it helps.

aspilicious’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

I'm going to mark this as a duplicate of #1035250: Initial port fb_friend.module + fb_form.module, fb_example.module, fb_connect.js as it integrates this patch and I cleaned it up a little.

Srry!