I am using linkedin api to get info about the logged in user. I am able to get firstname and lastname, picture etc., It works fine. But I am not able to get recommendations. I am able to get number of recommenders using num-recommenders.
I am not getting **recommendations-received** according to http://developer.linkedin.com/docs/DOC-1061. I printed out the json response no recommendations Object for the user.
I appreciate your help.
For unfortunate reasons, if you want to get access to that field, you need to replace IN.API.Profile().fields("firstName","lastName","recommendationsReceived") with IN.API.Raw("/people/~:(first-name,last-name,recommendations-received)").
This is a good thread to read on the LinkedIn Developer forums: http://developer.linkedin.com/message/8805
Related
I'm building a Facebook application that uses a webhook to read Facebook leads. The application is now working fine: every new lead in my campaigns are sent via the webhook to my script, with the needed information about the lead: ad_id, form_id, leadgen_id and so.
Now, I am trying to get some additional information with the Facebook Graph API based on the ad_id, form_id and leadgen_id and I'm having issues with this. I tried the Facebook Graph API in both PHP curl, and a direct HTTP GET call, and I'm having the same issue in both ways.
When I try to fetch the lead object using leadgen_id, it works fine, and I can get the name, email and phone that I need.
When I try to fetch the form object using form_id, it also works fine, and I manage to get the form name.
But when I try to fetch the ad object using the ad_id (since I need the name of the ad) it gives me the following error: "Unsupported get request. Object with ID '23848043174300142' does not exist, cannot be loaded due to missing permissions".
Currently I have the following permissions (advanced access): pages_read_engagement, pages_manage_ads, pages_manage_metadata, pages_show_list, leads_retrieval, public_profile, ads_management.
Is it an issue with the permissions or with my call?
I tried both PHP curl, and a direct HTTP GET call, and I'm having the same issue in both.
My HTTP GET call to retrieve the ad's name (based on ads_id) is the following:
https://graph.facebook.com/v11.0/ADS_ID?access_token=MY_LONG_TIME_APP_ACCESS_TOKEN
(when I'm replacing ads_id with leadgen_id or with form_id, it gives me the relevant object without any problem).
Thanks,
David
I am sorry if this comes up late, I just had a very similar issue and the solution was to go to the Business Manager then Business Settings > Integrations > Leads access and assign the user that we are using the token for to the corresponding brand.
Facebook explains it here under Note: https://developers.facebook.com/docs/marketing-api/guides/lead-ads/retrieving/
Hope this helps some people.
I am a beginner to using Webex API. I went through the documentation and couple of links(How can I use the WebEx URL/XML API to register a user for an event?) for an understanding of how it works. But while trying to use it, I get some errors and I am not receiving the intended result. If someone could give me a brief introduction on how it works, it would be great.
I want to access the login page in the webex API. By documentation, it goes of the name (p.php?AT=LI) and I tried to access the same using WebEX ID and Password which are the mandatory fields(as given in the documentation), I did not include the back URL. While giving this thing, I am receiving this error AT=LI&ST=FAIL&RS=UnknownATCommand.
Also I have these details. I have WebEX username, password, site ID and Partner ID. By WebEX ID, what does it mean ? Does WebEX ID and Partner ID one and the same?
Any help on this topic is highly appreciable.
Thanks & Regads,
Ramkumar
if you want to use Webex Xml API,
Your XML headers must have these elements
<header>
<securityContext>
<siteID>xxxx</siteID>
<webExID>siteadmin</webExID>
<password>password</password>
</securityContext>
</header>
I think you use URL API, its different
I need to be able to consolidate all the likes from users that use my Facebook app into an Excel or .csv file. I can have the user authenticate within my Facebook app, but is there a way to see the likes for all users of an app using Open Graph or some other Facebook tool? I'm certain that someone else must have had this problem, and I'm hoping that one of you can help me out!
I've been trying to run FQL queries to bring up likes, but don't have any experience with PHP so it has been miserable so far. Any ideas?
There's no way to retrieve a list of users of your app - you'll need to manually build that as users authorise the app see this question for more information
Assuming you have permission to access a user's likes connection - access /USER_ID/likes and parse the response, saving it to a file in accordance with whatever language you're using's syntax (google is your friend here)
Note that your use of the data is subject to Facebook's policies and user's consent in accordance with your privacy policy and sharing it with third parties may be illegal (i am not a lawyer, this is not official advice, etc etc)
Here is the problem with that the application type does not have a like connection. Application Object GraphAPI This is inconvenient when you are looking to gather data on the users that like it.
OR were you talking about the likes endpoint of the user object? That you can gather but I dont think it is what you are looking for. It is shown here Graph Explorer Example - user's likes
I'm working on a foursquare integration for a social good website, and I have everything working as I want it to, however I want to retrieve and store users foursquare user_id's so others can search for their friend. I've been searching all day, but I can't seem to find an end point, am I missing something? Or does this has to be done through user search? What is then best to use, as I have their email, and full name.
I am using jmathai's foursquare-async php libary. I think it should be easy but I just can't figure it out.
I've found the solution. To get an users' details you should use the end point "users/self". I had tried this before but got an error message. I think that was related to something else now.
After authenticating two lines are simply enough:
<?php
$fsObj->get("/users/self");
print_r($creds->response);
?php>
This gives an json array containing all relevant information on the user, including last checkins, name, and id. 'self' can here also be replaced by any user id you're authorized for on that moment.
For more information I'd recommend to visit Foursquare Api website
I hope someone wil be able to help to resolve my problem.
We can't say Facebook's forums are very useful for developers...
This is my problem.
On two different applications, I execute requests with Graph API.
For one of both, I make a friends request to invite user's friends to use application.
For the second application, I use Facebook Places to retrieve all informations about a location.
These two codes are simples functionnalities tests.
Before excute a request with Graph API, I ask to user to give me necessaries authorizations.
But results are, often, an empty JSON "data" array...
Before posting here, I search some solutions on internet.
Some people say application hasn't necessaries rights. Others user must like application page to retrieve informations correctly...
I tried these solutions... whithout concluant result.
For example, talking about my Facebook Place based application.
It asks user_checkins and friends_checkins rights.
Goal is to retrieve, for a given location, datas from users who're tagged there.
But I have an empty data array as return.
I tried my code in different ways, with PHP SDK, Javscript SDK and FQL. Same result.
Thanks :)
Sorry for my english. I'm a french developper ;)
For this - "Goal is to retrieve, for a given location, datas from users who're tagged there." Refer to https://developers.facebook.com/docs/reference/api/page/ and you will see that you can only get the checkin information for the current user or friend of the current user. In the case of a friend you will only get that information if the friend has allowed other apps to see this. So to test that you get data you should check in to a place (page), find the place's id, then make a query to https://graph.facebook.com/PAGE_ID/checkins with an access token that has user_checkins permission.
Also, here is a tool that you may find useful when debugging your API calls and permissions - https://developers.facebook.com/tools/explorer