Active
Project:
Drupal for Facebook
Version:
7.x-3.x-dev
Component:
Contrib Submodule
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2012 at 00:11 UTC
Updated:
12 Aug 2018 at 06:07 UTC
Jump to comment: Most recent
Comments
Comment #1
Desi Raaj commentedanyone has this working? I would appreciate any help :)
Comment #2
visuaLatte commentedI know what's wrong. The fb_friend module is not yet updated for Drupal 7. It uses hook_block instead of hook_block_info. I did some upgrading myself, and it didn't work completely, but I'll post the code when I get a chance-- it'll at least be a head-start.
Nathan
Comment #3
sol roth commentedCan't wait to see the code, even if you get it partially ready I've love to see it. I will be needing this feature soon.
Comment #4
visuaLatte commentedOK-- here it is. As I said, I still couldn't get it working, but I did split the hook_block() into hook_block_info() and hook_block_view(). Here is the resulting code.
Comment #5
visuaLatte commentedNote to my previous post: I usually split hook_block_view out into a separate function (in this case,
_fb_friend_block_content($delta)) that has the actual "guts" of the blocks. So hook_block_view() only sets up the blocks and calls this other function.Comment #6
visuaLatte commentedSo, does anyone else know how to build upon the code I posted, and why this didn't work? Clearly, even after splitting
hook_block()intohook_block_info()andhook_block_view(), it still doesn't enable working blocks inside a Drupal 7 system. There's something else going on within the Facebook Friends module that I am missing. Sorry not to be of more help!Comment #7
grasmash commented@nateeanes
Disable and uninstall fb_friend.
Change the fb_friend.info file to reflect core = "7.x"
enable module.
That will make the blocks appear. Then you'll have to deal with the updating the database calls. Probably much more too.
Comment #8
Desi Raaj commentedany progress on this issue?
Comment #9
druvision commentedThe javascript in the following link worked : Solution - Invite FB Friends to my drupal web app. No need for HTTPS. No need to integrate it into the FB app - just paste the script into a block or into your template.
Comment #10
mayur.pimple commentedComment #11
Dave Cohen commentedPlease don't close issue just because you found useful information on stack exchange. The issue will be fixed when the module and/or documentation is updated.
Comment #12
lauryndbrown commentedWas this ever fixed? I'm trying to find a solution to inviting friends to a website using this module.
Comment #13
sadist commentedI need this feature too. Any help here?
Comment #14
squinternata commentedis it possible to know it this module work and how????????
Comment #15
amittarkar commentedWhats the current status of this "Invite friends" functionality .after 1st August 2018 thats after the change in facebook's policy.