Adding MS Graph API Oauth in Azure Bot Services using REST API - rest

I am using REST API for Azure Bot Services and GRAPH API for creating MS Teams Bot.
I have been using two different oauths for my application since I require my bot to get details from GRAPH API.
https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token - for bot services
https://login.microsoftonline.com/common/oauth2/v2.0/token - for graph api
Is there a way to combine them, and use single ouath for both the purpsoses? I went through the documentaion and there is a way where bot can ask for graph api authentication from user.
I saw many examples for SDKs but I am not able to figure out how to do this in REST API.
I have followed this documnetation uptil here.
Can anyone please let me know if I am doing it right and further steps to be taken to add MS Graph API Oauth in Bot itself?

No. There is no way to combine them. We can only use a one token for one purpose.
The document you provided is to tell that we can use a bot to call Microsoft Graph. See reference here: Add authentication to a bot.
Creating the bot and use the bot to call Microsoft Graph should be should be two separate processes.
After creating the bot, you need to configure the AAD authentication to it, then you could use it to call Microsoft Graph.
See the Bot Graph sample.

Related

AD Graph API get calendar details

I need to pull down calendar details with AD graph API. How do I achieve this ?
I see lot of example with Microsoft graph API but not for AD graph API. Any pointers ?
Looking for API end point documentation for https://graph.windows.net to pull down
the calendar details
Unfortunately, AAD Graph API does not support to get the calendar. See all the AD Graph APIs here: Azure AD Graph API reference. The MS Graph API and AD Graph API are different, they will have some features different from each other.
In the official doc, Microsoft strongly recommends that you use Microsoft Graph instead of Azure AD Graph API. They are no longer updating the content of AD Graph API regularly and Microsoft Graph is where they are investing for Microsoft cloud services.
As you may have found, you could use MS Graph API : Get calendar to do that. Besides, for more details about the difference between MS Graph API and AD Graph API, see this link : What is the difference between Azure AD Graph API and Microsoft Graph API.

LinkedIn Jobs APIs details

I represent an organization. we are building mobile app for students and would like to know if there is a way to integrate linked-in job postings to our APP. If any REST APIs exposed around that feature then would like to get more details about those APIs.
We are looking for following feature:
- Get the job posting from linked-in API.
- Search or Filter them.
- Provide an option to the user to apply for such posting.
UPDATE:
LinkedIn has updated its API and I couldn't find any information related to getting LinkedIn Jobs in LinkedIn's new API. According to this Zapier post, Zapier is removing triggers related to New Jobs because of the API changes. In addition, Zapier removed all integrations related to creating, getting, or updating LinkedIn Jobs.
In other words, LinkedIn has removed the ability to get job postings from the LinkedIn Rest API.
OLD ANSWER:
I just finished up customizing a WordPress Plugin that currently gets LinkedIn Company Updates to now get LinkedIn Company job postings from the LinkedIn REST API.
The key API call for you to make would be the following:
GET: https://api.linkedin.com/v1/companies/{id}/updates?format=json
IMPORTANT: Make sure to set the event-type parameter to job-posting when making your GET request.
There is more information on all of the parameters for this endpoint at https://developer.linkedin.com/docs/company-pages#company_profile.

How can you ban a user from application's discussion board?

I can figure out how to ban users from most pages' discussion boards using the Graph API, but I can't find any way to do this for application pages. Is it possible?
You can use old api calls with new Graph API
You have to use this API Call: http://developers.facebook.com/docs/reference/rest/admin.banUsers/
And here is how you can use it: http://developers.facebook.com/docs/reference/rest/

How do I publish an activity on facebook using the Graph API

The old Facebook Legacy REST API had a function dashboard.publishActivity, however the new Graph API only allows messages to be posted on /me/feed.
Is there a way to send activities using the Graph API?
As mentioned in http://developers.facebook.com/blog/post/552/ Facebook "have removed the section which displayed the News that developers published via the Dashboard APIs in the Games Dashboard". Therefore the dashboard.publishActivity function no longer provides any useful functionality. My recommendation is to switch to either using stream posts or to Requests 2.0, as these will provide the same sort of distribution that you're looking for.

Using both Facebook Graph API and Old Rest API? Please help!

I am developing a Facebook application that will use Facebook events.
I want to be able to create and edit event as well as invite users friends to the event.
I prefer to use the new Graph API to handle all connections with Facebook and I many ways I am able too, but, the Graph API cannot send invites.
I saw that the Old Rest API got far more ways to interact with Facebook so I tried to use both systems on the same time but when I send the Access token that I have created with the Graph API a long with a call to the old API it says "Invalid OAuth 2.0 Access Token".
My question is, is there a way to convert the new Graph API access token to be used with the old rest API? Is there perhaps another way to get both systems to work in the same application?
Please help! All input are welcome.
I´d recommend against the old REST api. Support will be canceled sooner or later and then you will have to port to graph api anyway.
To send invites to your app you can use fbml/xfbml. try the http://developers.facebook.com/docs/reference/fbml/multi-friend-selector togehter with the JavaScript SDK as described here: http://www.takwing.idv.hk/tech/fb_dev/jssdk/learning_jssdk_11.html
good luck!