6.0.0-beta1
7/5/25

[#9674] Turba can't access Service_Facebook
Summary Turba can't access Service_Facebook
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester hordetest (at) rash-mail (dot) com
Created 03/16/2011 (5225 days ago)
Due
Updated 03/29/2011 (5212 days ago)
Assigned 03/19/2011 (5222 days ago)
Resolved 03/23/2011 (5218 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/29/2011 02:08:32 PM Git Commit Comment #9 Reply to this comment
Changes have been made in Git for this ticket:

Add prefix to all scripts and install them to bin_dir (Request #9674).

  62 files changed, 3676 insertions(+), 3564 deletions(-)
http://git.horde.org/horde-git/-/commit/b02d94603f01a17c266dc9bc930dc00b5c60c24c
03/23/2011 01:40:12 PM Michael Rubinsky State ⇒ Resolved
 
03/21/2011 06:24:46 AM Michael Rubinsky Comment #8 Reply to this comment
Original issue fixed, but as described in commit message, Turba still 
needs some refactoring to deal with the fact the FB changed the way 
you can get array values back from FQL queries. Thank you FB.
03/21/2011 06:20:22 AM Git Commit Comment #7 Reply to this comment
Changes have been made in Git for this ticket:

First round of Service_Facebook refactorings.
Adds OAuth2 support (and removes deprecated legacy canvas auth mechanism).
Keeps the legacy REST API methods for now (they work with the OAuth2 
access_token),
will slowly add support for the Graph API, but probably not before 
final release.

Turba still as issues since FB decided to remove support for returning 
array members
seperately when using FQL so this: SELECT current_location.city.... no 
longer works,
only SELECT current_location will work. This requires some refactoring 
of Turba's FB
driver since the fields are configurable in backends.php.

Related to:
Bug: 9122
Bug: 9674
Bug: 9683

  27 files changed, 505 insertions(+), 1126 deletions(-)
http://git.horde.org/horde-git/-/commit/f74a9f9f1ca191fd70d1b52d141d8e69fca91383
03/19/2011 04:01:23 PM Michael Rubinsky Comment #6
Assigned to Michael Rubinsky
State ⇒ Assigned
Reply to this comment
This probably belongs in the factory itself. I'll look at this while 
I'm handling Bug: 9122
03/19/2011 12:15:39 AM hordetest (at) trash-mail (dot) com Comment #5 Reply to this comment
Adding this to methods getAddressBook and getEntry of the Facebook 
Turba Driver:
         $facebook = 
$GLOBALS['injector']->getInstance('Horde_Service_Facebook');

         /* Authenticate the client */
         $temp = unserialize($GLOBALS['prefs']->getValue('facebook'));
         if (!empty($temp['sid'])) {
             $facebook->auth->setUser($temp['uid'], $temp['sid'], 0);
         }
03/18/2011 10:13:37 PM hordetest (at) trash-mail (dot) com Comment #4 Reply to this comment
The response from Facebook can't be parsed by SimpleXML and this is
catched there. What's the problem with that?
  The problem is the query:
[query] => SELECT uid, name FROM user WHERE uid IN (SELECT uid2 FROM 
friend WHERE uid1=)

uid1 is empty. Is this maybe another issue related to the php array bug?
It seems when using facebook as a turba source, somehow the user 
session is lost. $facebook->auth->getUser()  returns nothing. Facebook 
block in the portal is working fine.
03/18/2011 09:39:16 PM hordetest (at) trash-mail (dot) com Comment #3 Reply to this comment
The response from Facebook can't be parsed by SimpleXML and this is 
catched there. What's the problem with that?
  The problem is the query:
[query] => SELECT uid, name FROM user WHERE uid IN (SELECT uid2 FROM 
friend WHERE uid1=)

uid1 is empty. Is this maybe another issue related to the php array bug?
03/17/2011 04:47:48 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
The response from Facebook can't be parsed by SimpleXML and this is 
catched there. What's the problem with that?
03/16/2011 08:37:16 PM hordetest (at) rash-mail (dot) com Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Turba can't access Service_Facebook
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
2011-03-16T20:15:24+01:00 ERR: HORDE [turba] Parser error: unexpected 
')' at position 86. [pid 7729 on line 61 of 
"/horde/horde-git/horde/framework/Service_Facebook/lib/Horde/Service/Facebook/Request.php"]

Saved Queries