I know this question has been asked in the past, but times have changed and I am hoping the facebook SDK has progressed. I have seen other websites with the ability to deauthorize their app from the website rather than having the user sign in to facebook to do it. An example is glassdoor.com. If you create an account and then sync your FB account you can then deauthorize on the Account page. Any ideas on how this works because I have searched facebook docs and find only the deauthorization callback.
In graph API you can issue an HTTP DELETE request to /UID/permissions to revoke authorization for an app. Or you can use auth.revokeAuthorization from legacy REST API.
https://developers.facebook.com/docs/reference/rest/auth.revokeAuthorization/
hope this helps
Related
I have a web app wrapper for my PowerApps app (I have embedded it as an iframe on the home page of my ASP.NET Core app).
I also have the credentials of the Azure organization that developed this application and has access to it.
So, for the first time, my built-in app asks for an email and password to sign in to a Microsoft account. And only after a successful login, I can work with it directly.
But that's not what I want.
I expect to be able to work with the application when I load this page.
So, is there a way to use the app directly without signing in to a Microsoft account?
I got the idea to make a request to the Azure AD API and get a bearer token or cookie from there, and then save it to the client, supposedly filling out a login form and clicking the login button, but "quietly".
To be honest, I don't know how I can do this. I've spent hours researching this problem, but haven't found a suitable solution.
Could you help me?
Thank you in advance!
Use ROPC flow, you just need to send a http request, then get the response.
There will be no pop-ups requiring you to log in.
Tips:
Http Request
Http Response
Related Posts:
Is there a way to improve the performance of MSAL-browser js login?
I've been tasked with seeing if we can give users of our internal web application help links to documentation pages on our company's Confluence Wiki. But here's the problem, the requirement is that users should not have to log into Confluence because otherwise they won't bother using the help links (which is understandable). Is there a way to forward a user to Confluence and log them in with their current windows AD credentials? Every example of their api involves you supplying a username and password. We can't have that. If they are logged into our web app with their network cred, they should be able to see a page on our Confluence Wiki w/o logging in again.
Is this possible/practical or should we just use our own help docs system?
Note - when I log into our Confluence Wiki I use my Win AD credentials, so the two systems are connected. I just have no clue how to send a user and their credentials to their system from my asp.net webpage.
Thanks.
You want to configure your Confluence server to accept NTLM Authentication. I can't find the specific directions for Confluence, but given it shares backend code with Team City, you might find these directions helpful: https://confluence.jetbrains.com/display/TCD9/NTLM+HTTP+Authentication
At the very least hopefully this helps you find what to Google next.
By the way, You don't want to setup your website to forward credentials. It is possible, but your scenario is a simple website redirect. Credential forwarding would be if your are trying to talk to the server as an application server (and even then generally to be avoided).
I am trying to post facebook messages to a group(my group) wall from my program.
I've seen articles about facebook API but it shares your post with "via AppName"
but my posts shouldn't have that tag(my account is a company account).
I thought about using regular http requests and posts but i can login into facebook but i have no idea how to post to group wall.
The tag cannot be removed, it is important to be visible so users can see if the post was done with an App. You are not allowed to automate it without the Graph API btw, so "regular http requests" are out of the question. You are only allowed to post something manually or with the Graph API.
Information on how to post to a group can be found in the docs: https://developers.facebook.com/docs/graph-api/reference/v2.2/group/feed
Keep in mind that you need the user_groups permission, and that permission will most likely not get approved:
This permission is granted to apps building a Facebook-branded client on platforms where Facebook is not already available. For example, Android and iOS apps will not be approved for this permission. In addition, Web, Desktop, in-car and TV apps will not be granted this permission.
Source: https://developers.facebook.com/docs/facebook-login/permissions/v2.2#reference-user_groups
I am developing an application by which we can schedule our posts for future & which will be automatically posted to facebook on scheduled time.
I am able to post when I am logged in to facebook using my web application but I have no idea how will i post on scheduled time when i am not logged in to the facebook.
How will facebook identify that post should be posted on my wall & not on others wall.
Can any one help me.
I am using c#, asp.net for my application.
You create a facebook application using the Facebook API, you will then add that application your account providing it with the ability to post to your wall.
Then simply have the application check a database with your pre written content in, and when it's time post the content.
Have a look at the getting started guide: http://developers.facebook.com/docs/
If more than one person is using the application then there will a public token saved in the database assigned to each user, which facebook will authenticate against to see if that token/app has permission to post to that particular users wall.
On my site, user's post goods for sale (similar to Craigslis). I want to create the capability for user's to have it post to their facebook profile automatically from my site.
The scenario I'm imagining is this.
User creates an account on my site. In their profile, they allow my site to post to their facebook profile. From then on, anytime they post an ad, it automatically posts it to the facebook profile as well.
What do I need to do to create that agreement between my site and their facebook profile?
How do I actually post it to facebook? I'm developing in .NET/C# on ASP.NET MVC
Been hearing multiple stories on how to do this, not quite sure which to take and run with. Thus, I'm asking the experts here on StackOverflow! Thanks in advance!
A few resources that you might find helpful to get started :
Facebook Developer Site - Documentation for the API, forums, etc.
Facebook Developer Toolkit - a .NET library that provides access to the Facebook API
If you're looking to provide integration with facebook features on your site, you might want to look into Facebook Connect and its capabilities..
A while back I was looking at Facebook Connect and ASP.NET MVC and found these links helpful as well:
Making Facebook Connect work with ASP.Net MVC
http://singulartechnologies.com/integration-of-facebook-connect-with-asp-net-mvc
http://singulartechnologies.com/custom-asp-net-mvc-authorization-with-facebook-connect