I'm creating a system which is integrated with Facebook login and depends on the roles a user has on a page (Admin, Editor, Analyst, etc.)
Does it exists a Webhook field for the user page role update? (f.e: changing between admin, editor, etc.)
In case it doesn't, what is the proper endpoint to get a user page role?
I've found these endpoints:
v3.1/<page_id>?fields=name,userpermissions{id,user,tasks}
Cons:
userpermissions is deprecated on v3.2
can't filter by user_id (possibly needs to paginate to find out the permission for a specific user)
v3.2/<page_id>/roles/<user_id>
Cons:
doesn't work on v3.3 but I couldn't find any official deprecation ("(#100) Tried accessing nonexisting field (roles) on node type (Page)"). The same request on v3.2 works.
returns empty when using system user (business manager) page access token
v3.3/<user_id>/accounts/
Cons:
can't filter by page_id (possibly needs to paginate to find out the permission for a specific page)
Related
I am trying to get profile field sections like location, certificate, education, etc of the logged in user.
I am following the Oauth-flow. The permissions available for me are: r_basicprofile, w_member_social, r_organization_social, r_liteprofile. I am trying to use /v2/me endpoint but it says permission denied after using this in postman
GET https://api.linkedin.com/v2/me?fields=id,firstName,profilePicture,course,certificate.
Am I doing this wrong or are there no permissions for me to access it?
I read through the documentation, applied for other products like Share on LinkedIn, Community Management API in dashboard and got access to it but still it doesn't work
I tried using https://api.linkedin.com/v2/me?projection=(id,firstName,profilePicture,course,certificate) and it still returns default field projections.
I have a Facebook page listed in Facebook NPI. I am an editor of that page. When I am trying to check the subscription/news messaging permission status programmatically using this api:
https://developers.facebook.com/docs/messenger-platform/reference/messaging-feature-review-api/?hc_location=ufi
I am getting the following permission error:
(#200) User does not have sufficient administrative permission for this action on this page. If the page business requires Two Factor Authentication, the user also needs to enable Two Factor Authentication.
But when Facebook page owner calls this API, it returns the status successfully.
Can anyone tell me why page editor is getting the permission error?
Guess that is simply considered a page management action you do not have access to using that “role”.
Roles have been replaced by Tasks by now, see https://developers.facebook.com/docs/pages/overview-1#tasks
The only difference in the tasks they can perform, between old Admin and Editor roles, was MANAGE - so I guess you will need to have a page admin approve your user account for that task on the page now first, if you want to be able to use this particular API.
Working on adding course completion information to users that have authorized our system to write to their profile. Looking at the LinkedIn API, https://learn.microsoft.com/en-us/linkedin/compliance/ it looks this is possible if granted the w_compliance authorization but it doesn't seem to be available in the application setup.
I have been trying to contact developer support email provided but have had no response in the last week. Is there a path or setting that I am not seeing?
How does one get an authentication grant that includes the ability to update user profile course information?
I see Mailchimp has a feature to create facebook campaigns through its UI and I can't understand how they just need to have access to one of my pages to create ads for it.
As far as I understand you need to be a business manager administrator to claim a page as agency with the ADVERTISER role (cf. https://developers.facebook.com/docs/marketing-api/businessmanager/assets#pages) but
If the user who makes an AGENCY claim call does not have the proper permissions on the Page, the response will be PENDING. The Admin for that Page may login and grant the access, deny it, or even report the claim as a spam.
So how come Mailchimp doesn't require this validation?
So there is another way which doesn't involve business manager directly: adding a system user as advertiser.
Assigning permissions to a page from the API requires special permissions. Please reach out to your Facebook rep if you require this feature.
My team is still in the process to “reach a facebook rep” (it's been two weeks already…) but once this will be done a simple POST to <PAGE_ID>/roles with
admin_id: system user ID
role: Advertiser
should allow to create ads for pages using the system user access token.
Turns out facebook desn't want you to use the features they advertise, so there's in fact no solution.
I'm working on creating an application for a client that has to search Yammer for a term specified by a user. I'm using the Yammer JavaScript SDK to authenticate the user's login to acquire the access token which I then use to query the search REST API.
This is all working great, but I need to know about the user access rights using the SDK and REST API. Will the search endpoint restrict the search results to the groups and files that a user has access to? Or does the endpoint return everything that matches the search term regardless of the user's access to it?
Unfortunately I only have the one user account on the client's Yammer network to test with and can't really investigate the issue properly.
Any feedback will be appreciated!
It will return only what that user has access too
ie. If they can not see a hidden private group they would not be able to search for it
Try to think of the Javascript SDK emulating them logged into yammer.com