0

Issue with social.relationships table

Hi ,
I am facing an issue while using social.relationships table in YQL . When I run the following query
CODE
select guid from social.relationships(0,20) where owner_guid=me

on console I get the expected 20 guid results . But when I execute the same query using PHP code as

CODE
$session=YahooSession::requireSession(API_KEY, SHARED_SECRET);
if ($session == NULL) {
print ("<p>Error: Cannot get session object.</p>");
exit;
}
$query = "select guid from social.relationships(0,20) where owner_guid=me";
$queryResponse = $session->query($query);

if ($queryResponse == NULL) {
echo "Error: No query response ";
} else {
echo "<pre>";
var_dump($queryResponse);
echo "</pre>";
}

I get only one guid in this case which was the first result when I tried with console . I have tried this with 2 of my Y! IDs . Also the code works fine when used to display multiple updates etc. Can Anybody point me to what I might be doing wrong ?

Thanks,
Ankit

by
0 Replies

Recent Posts

in YQL