I'm following this netbeans tutorial to create a facebook app on Netbeans 7.1. http://documents.cofares.net/netbeans.org/kb/docs/websvc/facebook.html
In Step 12
When i am asked to select the REST resources "From IDE registered" gives me the sample ones such as Twitter, Amazon, Google . but NOT the "facebook",
So I tried to add facebook as a web service in Services window.
When I'm adding web service Netbeans asks me a local file Or URL.
I tried to give this URL for adding facebook as web service https://graph.facebook.com
but it says:
"can't determine whether service is WSDL or WADL"
What is the correct URL that I can use here?
http://documents.cofares.net/netbeans.org/kb/docs/websvc/facebook.html
NetBeans IDE Facebook support does not currently include support for OAuth, Extended Permissions, or the Graph API. Work on this is in progress.
Related
I have an application which connects to Google Drive API.
Now I have to add another function which requires the Google Directory API.
I granted the necessary permissions and enabled the new API in my project.
However I'm still getting this error:
"message" : "Access Not Configured. Admin Directory API has not been
used in project 594418282793 before or it is disabled. Enable it by
visiting
https://console.developers.google.com/apis/api/admin.googleapis.com/overview?project=594418282793
then retry. If you enabled this API recently, wait a few minutes for
the action to propagate to our systems and retry."
The problem is that the URL in the message gives me an error; apparently the project ID is invalid.
This is the error:
There was an error while loading
/apis/dashboard?project=594418282793. You are missing at least one of
the following required permissions:
Project
resourcemanager.projects.get
Check that the project ID is valid and you have permissions to access
it.
I have no idea what is the cause of this mismatch, why the project ID provided in the error message doesn't seem to exist, and where else should I enable the second API in my application.
Any ideas would be much appreciated.
I think you have miss understood how the credentials.json works.
Access Not Configured.
Means that the credentials you have loaded for this client has not been setup for the api you are trying to connect to.
When you create a project on Google developer console this is to give google information about your application as a whole and what it is designed to do. You should enable both apis in the single project.
Once that is done create your Oauth credentials as you did before this credential file will then be able to connect to both apis .
googel developer console
Left hand menu click credentials then button on the top says create credentials
Once you have created it click the arrow to download you can download the file anytime
I'm developing an Android app that uses Google+ signin. I searched in the net and this guide in stackoverflow is really helpful:
Google Account login Integration for android Xamarin
Now, i miss one step.
I created an oauth web client id in the google developers console (not android client id) using the redirect url, like the guide said, http://abcd.com/xyz.aspx , and works. But i can't use it!
So i tried http://localhost (doesn't work) and google urls like urn:ietf:wg:oauth:2.0:oob, urn:ietf:wg:oauth:2.0:oob:auto but i can't even set it in the textbox when i create the client id because is invalid url format (it wants the http://, and yes, it doesn't work as well).
I haven't got a web application with an aspx view to redirect, i'm developing an android app. So what could it be my redirect url?
Thanks for any help!
I am trying to get a token from my android app in order to exchange it later on my server for a refresh token. I followed the following guide 'https://developers.google.com/accounts/docs/CrossClientAuth' and tried the following:
GoogleAuthUtil.getToken(getContext(), "somegooglemail#gmail.com", "oauth2:server:client_id:" + myServerClientId + ":api_scope:https://www.googleapis.com/auth/plus.login")
somegooglemail#gmail.com is my personnal mail and I am testing on my mobile phone so no problem from this side. The "myServerClientId" has the value defined from the Google developper console (i have create a native application and taken the id of this application). The two applications (my android and my native appliaction are of course in the same developper project in the developper console).
I am getting this all the time:
com.google.android.gms.auth.GoogleAuthException: Unknown
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
Does anybody has an idea? By the way I can obtain normal token when only specifying the scope!
I have finally found the problem. It is linked to the type of my server application. I have use "Native appliaction installed" like I saw in some post and it is necessary to use "Web appliaction" to make it works. Hope it will help someone...
I am building a java app which integrates with my facebook account and fetches checkings details of my friends.
Steps that I followed:
1) Download facebook-java-api and created a dynamic web project in eclipse.
2) Refer the article to authenticate a user_https://developers.facebook.com/docs/authentication/client-side/
3) Refer the following URL to see checkin API refrences
https://developers.facebook.com/docs/reference/api/
On this page, under the “Searching” section I came across the https://graph.facebook.com/search?type=checkin link, when we click this URL it navigates to a page_https://graph.facebook.com/search?type=checkin&access_token=<.........> (it automically creates a access token for you, provided that you are logged in your facebook account) and there I can seee my friends checkins details.
Now how can I integrate the same feature with my Java app?
Any other suggestion to retrieve friend’s checkins details and to show them on a jsp page.
Regards.
How do I login into Facebook and get a accesstoken in Java with a desktop application only?
I found a api http://restfb.com that lets you call methods but you have to get the token yourself. So is there a way to do this using only a desktop app? Maybe embed a browser to a window popup?
I already know the process in getting a token explained here http://benbiddington.wordpress.com/2010/04/23/facebook-graph-api-getting-access-tokens so my question doesnt involve that. I need a way for the user to login into facebook using some kind of GUI.
As in the facebook document
Our OAuth 2.0 implementation does not include explicit support for application built for desktop operating systems. However, if your app can embed a web browser (most desktop frameworks such as .NET, AIR and Cocoa support embedding browsers), you can use the client-side flow with one modification: a specific redirect_uri. Rather than requiring desktop apps to host a web server and populate the Site URL in the Developer App, we provide a specific URL you can use with desktop apps: https://www.facebook.com/connect/login_success.html.
I think you are right about embed web browser.
And I suggest you to move to Graph API instead of Rest, Because It's deprecating.
see more abount Facebook Authentication
Deprecating the REST API