How do I log out of Facebook with the Silverlight In-Browser Sample? - silverlight

I'm using the CS-SL4-InBrowser sample project that was provided with the Facebook C# SDK. This is a Silverlight in browser sample that uses OAuth
The Facebook login process uses FacebookOAuthClient.GetLoginUrl() which works well.
However, there does not seem to be an equivalent method for retrieving the logout url (eg. FacebookOAuthClient.GetLogoutUrl() ).
Can anyone suggest the correct method for logging out or point me to a post that might help?

Related

GMail API Node.js quickstart - ERR_CONNECTION_REFUSED

I am trying the GMail API Node.js quickstart on Windows 10.
I do get the expected
.
However when I visit the url I get
for http://localhost/?code=4/xxxxxxxxxxxxxxxxxx&scope=https://www.googleapis.com/auth/gmail.radonly
I get this error after going through 'This app isn't verified'/'Advanced > Go to {Project Name} (unsafe)'. message.
No Proxy active and also tried with AntiVirus disabled.
Any ideas what the problem could be?
Thanks.
The issue you are having is that you are runing a Authorization credentials for a desktop application. Google made a change recently which deprecated the oob redirect. This means that now you need to use localhost or 127.0.0.1 as a redirect endpoint for installed applications.
Resulting them in returning the authorization code back to the browser showing site can not be reached because your not running a web app you are running an installed application.
If you check the url the authorization code you are looking for to add to your code can be found there. just take that code and submit it where it asks for it.
Enter the code from that page here:
There is currently no other option and no way to fix this unless you want to start up a web server in node. basicly its working as intended and Google is in the process of updating all the Javascript samples to reflect that.

How to verify a phone number and login using Facebook in Flutter

I am developing a mobile application in Flutter, the mobile application should allow the user to verify his phone number first before allowing him to proceed, and we should allow the user to authenticate by Facebook, is there any tutorial or documentation that shows out how to do this?
Thanks
The firebase_auth plugin does this for you. Setting it up you will have to follow the instructions on the page, which also gives a basic example of the functionality.
Documentation, sadly, is not really avalaible, but the source is easy to understand (after taking a look at the example in the Readme.md). Here you can take a look at authentication with Facebook.
Phone auth is currently not completely implemented with the official SDK, so please check the latest replies to this issue.

Disable API discovery for API Explorer

I'm new to App Engine and am trying to figure out how to disable the API Explorer from showing all my APIs, which are currently public and available to anyone visiting [MYPROJECT].appspot.com/_ah/api/explorer
Supposedly Snapchat uses AppEngine, however visiting https://apis-explorer.appspot.com/apis-explorer/?base=https://feelinsonice.appspot.com/_ah/api#p/ does not reveal their APIs.
Viewing network activity for that page you'll see that requests are being made to https://feelinsonice.appspot.com/_ah/api/discovery/v1/apis but returning a 404.
How do I do the same?
When visiting the API Explorer using my project ID I see this:
Is this the culprit?
Endpoints is the 'culprit'. I'm assuming you are using endpoints since you've included that tag, and I guess snapchat doesn't use endpoints.
There is nothing you can do to change this other then stop using endpoints.

GAE Java Facebook server authentication double call

I am having a weird issue. I created an application on Google App Engine and have a Login with Facebook button on it, for which I am doing server side authentication.
I give the redirect_url, and facebook was calling the URL correctly with no issues. The session parameters that I set were being retrieved on the redirect call and everything was working fine.
Yesterday, I got a domain on godaddy and mapped it to my appspot account using google apps. Now when I click on Facebook login, I am getting two calls on the redirect uri, the first one carries the session varaibles and the session one doesn't. I am not very familiar with domain mapping and followed the steps on Google Apps.
Can anyone help me in the right direction on this.
it's a little out of date, but i documented some GAE to Facebook gotchas here:
http://javagwt.blogspot.com/2010/08/facebook-apps-on-app-engine-without-any.html
It may also help to read about naked domain mapping with godaddy, to make sure you're not getting bounced around. Even though you are mapped to your domain through google apps, you can try to put the redirect URL for facebook as yourappid.appspot.com - the redirect URL you provide, and the one in your facebook app settings must match.
My app, nimbits.com writes to facebook from GAE all of the time - the code is on github under server/facebook
https://github.com/bsautner/com.nimbits/tree/master/nimbits-tds/src/com/nimbits/server
Thanks for the answers bsautner and Michele. I finally figured out the issue. I have google ads on my website. The google ads was trying to parse the URL content and creating a second request for every request that I create. After removing the google ads, I get a single callback with session values retained. It all works now. The final output is this website - www.imagecrashers.com. I will be glad for any suggestions from the gurus here, regarding layout or api calls simplification. Thanks again to all.

Send status to Facebook from Windows phone 7 silverlight application. What do I need?

How do I perform this?
I'm making a funny little notepad application where you should be able to send your notes to your Facebook account, as a status.
My question more directly is: Where do I find code so I login to "Facebook-write status page"?
And how do I implement it in this silverlight application? Can I use html/Javascript for this maybe?
There is a project at http://facebooksdk.codeplex.com/ which lots of people have used to integrate Facebook functionality into their Windows Phone 7 apps.
You don't need to use javascript or html for this.
Facebook has an API that you can use by sending web requests from your application to facebooks servers. The process is not straight forward, so you should check out the documentation here: https://developers.facebook.com/search?q=API
There is an open source C# based API available here: https://developers.facebook.com/blog/post/395 It may be easier to use than doing web requests yourself.

Resources