Well, as the title says, when clicking the "Invite friends from FB" link, which (correctly, i assume) points me to /fbconnect/invite/friends . That page however only shows the page title: "Invite my Facebook friends". Nothing else.
I've tried visiting the page both being logged in to drupal useing fbconnect and not being logged in into drupal, only logged in into facebook.

The "Invite facebook friends" permission is checked for all roles

Using drupal 7.14

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cabita’s picture

I have the same issue.

strr’s picture

have emty fb invite page too at: fbconnect/invite/friends?destination=invite or fbconnect/invite/friends

any news here?

markandphil’s picture

Same issue, its the only thing holding up the development of the site we're implementing. Not sure why it won't show but we do see the FBML code in the source.

strr’s picture

anyone?

strr’s picture

please?

strr’s picture

no one?

onegenius’s picture

Found the problem however the solution will take time and programming skillz. The current method used to create the invite has been depreciated by facebook and is no longer supported.

see here: http://developers.facebook.com/docs/reference/dialogs/requests/

Let me see if I can create a quick patch.

Solution:

You will need to edit fbconnect.module line 30. Change to function to something like this. Afterwards clear cache.

/**
 * Implements hook_page_alter().
 */
function fbconnect_page_alter(&$page) {
  if (facebook_client() && !_fbconnect_is_excluded_page($_GET['q']) && !variable_get('fbconnect_noroot')) {
    $config = fbconnect_get_config();
    $channel_uri = preg_replace("@'@msi", "\'", "http://" . $_SERVER['HTTP_HOST'] . "/" . drupal_get_path('module', 'fbconnect') . "/channel.html");
		$invite_code = (arg(0) == "fbconnect" && arg(1) == "invite" && arg(2) == "friends") ? 'FB.ui({method: "apprequests", message: "My request message."}, function() {alert("Put your message here.");});' : "";
    $page['page_bottom']['fb-init-code'] = array(
      '#type' => 'markup',
      '#markup' => '<div id="fb-root"></div>
      <script type="text/javascript">
        window.fbAsyncInit = function() {
          FB.init({
            appId : \'' . $config['app_id'] . '\',
            cookie : true, // enable cookies to allow the server to access the session
            xfbml : true,
            logging: \'' . $config['debug'] . '\',
            channelURL: \'' . $channel_uri . '\',
            oauth  : true,
            frictionlessRequests: true
          });
          // whenever the user logs in, we tell our login service
          FB.Event.subscribe(\'auth.login\', function() {
            window.location.reload();
          });
          FB.Event.subscribe(\'auth.logout\', function(response) {
            window.location.reload();
          });
					' . $invite_code . '

          jQuery(document).trigger(\'fb:init\');
        };

        (function() {
          var e = document.createElement(\'script\');
          e.src = ' . $config['connect_js'] . ';
          e.async = true;
          document.getElementById(\'fb-root\').appendChild(e);
        }());
      </script>'
    );

  }
}
strr’s picture

@onegenius

Big "Thank You",
this is a huge step to fix the module.

I replaced the function as suggested.
Now one can click on the "Invite Friends Button" and at fbconnect/invite/friends it opens up a popup with the facebook friends list.
I can invite friends but after that is done there is anather popup saying "put your message here". But no place to put something?
The Basic page at fbconnect/invite/friends is still emty - is this correct?

What i want is to remove both popups and place something inline on the content page at fbconnect/invite/friends.
Because the popups are always blocked by the browser first.

Thank You

dgastudio’s picture

any update?

Yorgg’s picture

Any progress on this regards?

Yorgg’s picture

Version: 7.x-2.0-beta4 » 7.x-2.x-dev
sadist’s picture

using 7.x-2.x-dev and having the same issue.

I can see the markups in the HTML source, but it doesn't print anything in the browser.

    <fb:serverfbml>
      <script type="text/fbml">
        <fb:fbml>
          <fb:request-form  method="POST" action="http://www.domainname.tld/fbconnect/invite/friends" type="Page Title" content="Enjoy facebook connect &lt;fb:req-choice url=&quot;http://www.domainname.tld/fbconnect/invite/accept/50?destination=fbconnect%252Finvite%252Ffriends&quot; label=&quot;Become a Member!&quot; /&gt;" invite="1" >
            <fb:multi-friend-selector  cols="6" rows="6" max="35" showborder="false" actiontext="Please select the Facebook friends you want to invite" bypass="cancel" />
          </fb:request-form>
        </fb:fbml>
      </script>
    </fb:serverfbml>
smartsystems160’s picture

Priority: Normal » Major
Issue summary: View changes

Since module is unusable at this state, changing priority to major

SwapS’s picture

Based on #7 , Created a patch that will solve the issue related to "Invite friends from FB".
Also ,
-> Removed pop up message from the code.
-> Configurable Invite Message is now configurable.

SwapS’s picture

Status: Active » Needs review
gobinathm’s picture

Status: Needs review » Closed (fixed)

SwapS thanks for the patch. Its been committed & the code changes will be available in next stable release.

jalalkhan121’s picture

it' now working fine, special thanks to Oshane Thomas @ onegenius

Marko B’s picture

I tried to use this submodule and FB pop up opens but after that I invite people, close the pop up and I end up on empty page like

fbconnect/invite/friends?destination=user/111

and from what I see no invites are sent and no feedback message is received what happened. Pop up is just closed.

Marko B’s picture

I solved this. The part that was missing was this 2 issues.

"
One is that you application is missing the Canvas. Just add it from the your App panel in Facebook Developers.

The second one - make sure your app is NOT in SandBox Mode. If it is it won't send any notifications. I lost hours before figuring that out and changing the code in all possible ways."