× Joomla Facebook Connect support forum

Topic-icon FB Requests 4.2.1 Admin Backend Error

Active Subscriptions:

None
14 years 1 month ago #22369 by Ivan
Hi, I have an issue where in my joomla admin backend for requests i am unable to see the fb_user_from in Requests Section.

Requests do seem to be sent and recievef in Facebook however in the backend it doesnt show the avatar of who sent the request and the
field for fb_user_from is 0

In components/com_jfbconnect/controllers/requests.php

Function requestSent();

Its not getting
> $requestInfo = $jfbcLibrary->api('/' . $fbRequestId);
The topic has been locked.
Support Specialist
14 years 4 weeks ago #22394 by alzander
Ivan,
Thanks for the report. Facebook changed how the requests have to be read, apparently. Please update the components/com_jfbconnect/controllers/requests.php file. At line 29, you'll see:
$requestInfo = $jfbcLibrary->api('/' . $fbRequestId);
Change that to the below, adding the top line, and updating the line copied above:
$to = $inToList[0];
        $requestInfo = $jfbcLibrary->api('/' . $fbRequestId . "_" . $to);
That should fix it for you, but obviously test, test, test!

Sorry for the issues, and please let us know if that you still run into any other issues,
Alex
The topic has been locked.
Support Specialist
14 years 4 weeks ago #22395 by alzander
Another note.. if you absolutely have to recover who sent the original request, you can do so manually by going to the following URL for each request:
https://graph.facebook.com/REQID_TOUSER?access_token=123|xyz&method=GET
Where:
* REQID_TOUSER = the Request ID and the user ID of any user the request was sent to (make sure you put a ? at the end of this)
* access_token = your App ID separated by a pipe | followed by your secret key

The page you go to will have data on it, and one section will look like:
"from": {
      "name": "Alex Sourcecoast",
      "id": "1251253607"
   },
Id is the Facebook user's ID who sent the request. That ID will be valid for all users that specific request ID was sent too (if sent to multiple people).

Sorry to make you piece this together... but I know one person I referred to this post is using the Requests feature for rewards, and may need this info.

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 weeks ago #22397 by Ivan
Thanks, I will test it out.
The topic has been locked.