Post #22Agree it is superficial. However it should be corrected. Other superficial errors can be harmful if a beginner developer just copy and paste the code like I did.
Post #23I confirmed that Canvas View won't allow you to define key and secret this waydefine(CONSUMER_KEY,"xxx");
define(CONSUMER_SECRET,"xxx");
This define statement will cause errors.
Even I use a safer way to define the key and secret, I am still getting the same error reported on Post#23
$consumerKey = "xxx"
$consumerKeySecret = "xxx"
Note: I do have Contacts, Connections, and Status Message in my Yahoo Profile. I was able to pull the data array via PHP SDK and YQL. In short your mysocial.php sample code is not working. After rendering the $user_profile & $user_updates, it failed on parsing the arrays $user_contacts and the rest.
Post #27If getContactbyGuid is no longer a method in the SDK, can you check if the sample code here is correct and valid?
$user_contacts = $yahoo_user->getContacts();
foreach($user_contacts as $contact)....
I couldn't parse any contact in this array
Post #29See my fixes on Post #31. You are welcome to use my code in your sample code. You need to limit on the data within the buffer.
Thank you partYahoo Open Social container is the most restricted among Open Social containers. In order to get a very complex commercial application to run, I rather spend the development time to build a better app that run better on Yahoo platform than debugging and double checking your sample code and SDK on documentation. Or spend the time to re-architect the application to run on Yahoo platform. At startup mode, we'll need to justify our development time. Reasonable timely responses on critical bugs are necessary.
Hi vivaty.menlopark,
Since there are a number of posts here...I'm going to list off responses to some of the action items based on your post #:
Post #22
This is a valid concern in the sample code but this is a superficial change. Since the directory path to the SDK is on a user’s server, this path will be changed anyways – this will not affect development but I have sent this same information to the docs team so they will probably revise this in the next docs iteration.
Post #23 & 24
This code sample works perfectly for me. I think this error might come up if you have no contacts or connections (but that's just a guess). Can you verify whether you do have contacts / connections please. With that information we'll take another look.
Post #27
getContactbyGuid is no longer a method in the SDK. I've sent this same note to the docs team that on http://developer.yahoo.com/social/php_guid...l_tutorial.html under “Getting User Contacts”, references to the getContactByGuid method should be removed.
Post #29
#1 – This process seems to work fine for me
#2 – There is an issue with the sample code for this one. Info sent to the docs team as well. On http://developer.yahoo.com/social/php_guid...-using_yql.html under “Querying Private Data” #2 the code needs to be updated.
#2 code sample should work if it's the following:
CODE
// Define YQL queries for the Social Directory APIs
$profile = "select * from social.profile where guid=me";
$contacts = "select fields.value from social.contacts where guid=me";
$connections = "select * from social.connections where owner_guid=me";
$updates = "select * from social.updates where guid=me";
$status = "select value.status from social.presence where guid=me";
$api_queries = array("Profiles"=>$profile,"Contacts"=>$contacts,"Connections"=>$connections,
"Updates"=>$updates,"Presence"=>$status);
Thank you for taking an interest in helping us build a better system for all developers, and we very much appreciate that you are taking the time to voice your concerns on the forum. I just wished to note that the Y!OS forums are generally moderated by the same people that have built and/or use the platform internally. These teams are working diligently to upgrade the platform with new features, fix bugs assigned in their queues and provide developer help on top of that. We understand your frustration if you're in a time crunch and need immediate responses, but it does take us a moderate amount of time to see your questions, test your code samples / doc changes, inform the appropriate departments and then respond. We appreciate your patience and will do our best to help you as best we can.
Jonathan LeBlanc
Senior Software Engineer
Yahoo! Developer Network