I am playing around with Facebook's Workplace API. I have some experience working with Facebook's Graph API using the Graph API explorer, but I don't know how to call the API for workplace in the Graph API explorer. Or is there a separate Graph API explorer tool for Workplace?
Update 1
I have created the Workplace account using my domain email, but my Facebook account was created on my personal Gmail account. The Graph API explorer is opened in my personal Facebook account. Could this also be a problem?
This is how I am doing it. I am not using the Graph API explorer, but I am using postman.
Suppose you want to get the list of grp from the workplace.
With a GET req, enter the URL https://graph.facebook.com/community, and in the Headers section, add Authorization Bearer <access token>, press send, and you will see list of grps.
This is how I am doing it now.
Related
My question is Laravel Socialite using for getting tokens only?
For example, I want make Facebook post thought API.
I cant find any methods in Socialite docs. Does it means, that Socialite using only for getting tokens?
As I see in https://socialiteproviders.com/, thats only auth additions.
As auth, it response basic user information, but if you need make full API list, you need find another solution.
I find solution, but I want explain my task:
I need use Instagram API through Facebook.
Facebook has PHP SDK for using Facebook API, with examples, which arent show any instagram cases with API using. I didnt manage Instagram API with Facebook SDK.
And I cant find any working solutions using Facebook SDK.
So, in my case, I am using Laravel Socialite for generate redirect URL and access token.
And then I am using manual HTTP client for Instagram API with token from Socialite.
I have requirement to share a product image and its description from my website to instagram.
Can anyone tell me is it possible?.
I went through the Instagram Graph API documentation but everything is related to Mobile Apps, can i use the same API for sharing from my desktop website.
Thanks in advance.
There is content publishing API support for FB Instagram graph API. but that is in beta yet.
https://developers.facebook.com/docs/instagram-api/content-publishing
The Content Publishing API is in closed beta with Facebook Marketing Partners and Instagram Partners only. We are not accepting new applicants at this time.
The Content Publishing API is a subset of Instagram Graph API endpoints that allow you to publish media objects. Publishing media objects with this API is a two step process — you first create a media object container, then publish the container on your Business Account.
Currently, the API can only be used to publish photos.
This would also require your Instagram account to be business account to use this API.
I am trying to access workplace data using Facebook Workplace API. I am the System Administrator for the workplace. Still I dont get the CommunityId in the Custom Integrations page.
Has anyone come across this same situation? Any suggestions would be great !!
You can find your Community ID by making a Graph API GET call to graph.facebook.com/community with a custom integration access token (https://developers.facebook.com/docs/workplace/integrations/custom-integrations/reference/community)
I have created, built and published a sample lex bot.
I followed steps in this link to deploy bot on Facebook messenger. ( by creatign facebook page, fb app and adding webhook etc)
http://docs.aws.amazon.com/lex/latest/dg/fb-bot-association.html
For creating FB app and page I used my Facebook credentials.
Issue:
I am able to interact with bot from facebook messenger ( with my facebook account) and getting desired response from bot
However, when my facebook friend interacts with bot using his facebook account, he doesn't get any response.
Am I missing something here ?
I think your Facebook App is in development mode, so you need to add your friend as a Tester in the role tab, or let Facebook approve your App.
Either you need to add your friends as Tester or you can publish your app after getting the approval from Facebook.
this is my first ever proper post, apologies for breaking any formatting conventions.
I am working on a simple app that is using the Microsoft Azure ACS for authentication and Facebook as the Identity Provider. At the moment this is just a index.php page which echoes out a big HTML chunk rendering the login page and accessing the Facebook API.
So far I have been able to set up my ACS account with the correct settings and successfully add Facebook as an identity provider. I am able to login with Facebook and return to my app, as well as use the Facebook API to get information about the user. However, I would like to get the original claims generated by ACS back from Facebook, like the "AccessToken" and "emailaddress" which are set in the ACS management, so that I can later provide this token back to ACS and continue with authentication. I cannot seem to find how to do this anywhere in the Microsoft Doc or Facebook API.
Any help would be appreciated !
I would not recommend using ACS as Microsoft is discontinuing it. You should either consider integrating directly with FB (multiple frameworks for this, and quite a bit of docs if you search for it), or consider using an alternative to ACS like Auth0.
Disclaimer: I work in Auth0.