How to get Facebook API caller class and use them? - facebook

Please don't avoid this post.I am trying to find Facebook caller class name.
I'm searching something like below example class on developer Facebook.
example:
'fb_api_caller_class' => 'com.facebook.registration.protocol.RegisterAccountMethod'
'fb_api_req_friendly_name' => 'registerAccount'
'method' => 'user.register'
caller class are:
com.facebook.registration.protocol.RegisterAccountMethod
registerAccount
user.register
How to I find them and use them?
Give me tips, trick and example please. thanks.

No one help you... They don't know how to find it and use it.
Contact with expert facebook graph api developer. stackoverflow ask you question again and again. they don't give you this type solution. all the beat.

Related

Facebook | Can't get profiles that are mentioned in a facebook profile post

I have an App that needs to query a users's profile post.
For any post, I'm trying to figure out:
the number of people (profiles) mentioned and
the names of the people (profiles) mentioned
Assume the user has already given the App access to view their profile data.
See here: https://developers.facebook.com/docs/graph-api/reference/v2.3/post
According to the documentation, if a user mentions 2 profiles, say "Friend1" and "Friend2" then I should be able to get back a response that includes the field:
which has some profile information for "Friend1" and "Friend2".
The problem I'm having is given the GET query
https://graph.facebook.com/v2.3/10207722160149556_10207755501343065
I get the response:
{:created_time "2015-11-08T09:29:54+0000", :message "Friend1 Friend2 testing again sorry just ignore", :id "10207722160149556_10207755501343065"}
I don't get a to field or for that matter a bunch of other information?
Does anyone know how I can get back what is listed in the documentation as what I should be getting?
Any help would be appreciated
In case this helps, these are the permissions I'm currently requesting:
["user_photos" "user_friends" "publish_actions"
"user_posts" "user_likes" "user_relationships"
"user_about_me" "email" "public_profile"
"user_tagged_places"]
Kind regards,
Jason.
Sorry, bad case of not reading the documentation and a library that I was using that got in the way.
I have to include a "field" query param to specify what I want returned.
After that and validating with a curl call I can get the information I need.

How do I get the Explore and Stream section from the SoundCloud API

I can't seem to find the section in their api reference. I tried it as a searchquery but it doesn't seem to work. api.soundcloud.com/stream or /explore return a 404, so that doesn't work either
Thats actually not a part of the public API.
But its quite easy to grab your call from the dev console.
Thats an example call from my user:
https://api-v2.soundcloud.com/stream?user_id=e87647259112403eaa239b6e2c510e46&sc_a_id=e87647259112403eaa239b6e2c510e46&user_urn=soundcloud%3Ausers%3A1672444&promoted_playlist=true&limit=10&offset=0&linked_partitioning=1&client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea&app_version=a089efd
To make that call work, you need to modify the headers.
These answers may help you:
Retrieving the "recommended" playlist via API call?
soundcloud: Is api-v2 allowed to be used and is there documentation on it?
How to get "all" tracks related to an artist with Souncloud API
Using these endpoints does not go inline with SoundClouds TOS.

Does HWIOAuthBundle support retrieving friends list, gender, country

I have just implemented the HWIOAuthBundle in my symfony project. Actually, it is configured with facebook and I am wondering if it supports retrieving friends list, gender and country?
If yes, could you please provide me an example of code for the function public function loadUserByOAuthUserResponse(UserResponseInterface $response)?
It would be really helpful.
Thanks.
I found the solution by my self!!!
HWIOAuthBundle supports retrieving any thing you want. All what you have to do is to specify it in the facebook api then through the method getResponse() you will have access to them.
$attr=$response->getResponse();
// then get your field like this
$user->setGender($attr['gender']);
I guess now it is easy.

Facebook TestConsole

Can anybody tell me how I can put an Array into the testconsole for example here?
http://developers.facebook.com/docs/reference/rest/dashboard.multiAddNews/
the "uids" and "news" requests an array parameter. It´s really funny right now for me, because i tried many methods and i was searching around. i didnt find one example of what i can put in there...
I was trying some of these
{"message":"test"}
"message":"test"
[{"message":"test"}]
[{\"message\":\"test\"]
message=test;
Please note:
1) the above method is deprecated
2) it won't work in any case in the test console since it should be called with app access token and the test console is working with user token.
To your question: uids should look like ["12345","56789"], while news is array of jsons
hope this helps

CakePHP and Facebook Plugin: read user checkins

I am using CakePHP and Nick Baker's Facebook Plugin, and I am trying to retrieve a certain user's checkins. The problem is that I have quite no idea on how to do this. There is nothing related to checkins in the plugin's documentation. All I have is the api() method which I don't know how to use.
I have this so far:
App::import('Lib', 'Facebook.FB');
$FB = new FB();
$this->set('checkins', $FB->api('https://graph.facebook.com/'.$this->Connect->user('id').'/checkins'));
but the checkins variable contains only this:
Array
(
[id] => https://graph.facebook.com/1000005215732xx/checkins
)
But have no idea on how to continue. Also, after I retrieve the checkins, I would like to search whether a user has checked in in a specified place.
I will be glad for any help you can give! Thank you!
The api() method only takes a URL relative to the API endpoint, so you should be calling:
$result = $FB->api('/<uid>/checkins');
Also, make sure you have the proper permissions, especially user_checkins.