wsdl creation to connect facebook - facebook

I am new to facebook graph api. I have gone through the restfb client which uses graph api to connect facebook. It has publish,fetching objects methods etc.
I am in need of creating a wsdl in order to connect and upload a photo in facebook from outside?
How can i create a wsdl which should have an interface to connect and upload photo in facebook?

Facebook exposes its webservices through RESTfull webservice.
RESTfull webservices typically don't have a wsdl file where you can directly create a client.
But facebook does provide client library in many popular languages you can use any of those to connect to facebook.
RESTfull webservices are also easy to use. You can also make REST calls directly without any library. Like curl in php. HTTPUrlConnection in Java.

Related

Best way to implement authorization in REST API's

best way to implement authorization in REST API's developed on JERSEY Framework. For example, the following is my API end point URI and I would like to authorize so that only person access the API.
/api/swimpool/v1/swimpool/12
I read few article about securing REST services, but they dealt with authentication and static configuration in tomcat-users.xml in tomcat environment and little configuration in web.xml of the application.
Token based authentication is one I came across for authorization. Are there any alternatives or best practices for securing web services.
UPDATE
How does facebook application protect there resources, for example API is there which will list/displays the photos in a given album. But how does facebook secures (authorizes) the end-points not to access other's album.
For example, User A can view photos in his album, but can not view photos present in another user B. User A may try to guess the API (as the API is same for all the users) call being made to fetch the photos and modify the path parameters and try to fetch the details.
Thanks

How to integrate the smartsheet in php

How to integrate the smart sheet in my php website.i want to show the smartsheet of each staffs in there dashboard. I want to authenticate and show all smartsheet options in dashboard.
You can use the Smartsheet REST API from PHP to pull back information from Smartsheet and display it in a web page. Please see the Smartsheet API Documentation for information. Since Smartsheet's API is a standard REST API using OAuth 2, standard PHP libraries for calling REST APIs will work with the Smartsheet API. Some examples of calling REST APIs from PHP are below:
Using curl and PHP to talk to a REST service
Call a REST API in PHP (Stackoverflow)
How to make REST calls in PHP
Make Yahoo! Web Service REST Calls with PHP
Interact with the Force.com REST API from PHP
If you want to experiment with the API without dealing with OAuth, the Smartsheet API supports User-generated Access Tokens to make authentication easier.

How to call servicestack social login API from Xamarin

I'm building an app that supports credentials authentication, facebook and google oauth on both Android and iOS.
My backend are written using ServiceStack.
For authentication using a browser we typically call /api/auth/facebook and ServiceStack handles the callbacks and exchange of information from the social provider such as facebook for a person logging in the first time and it also handles signing in a returning user via the same api endpoint.
When trying to connect to add support for facebook authentication or google in Xamarin app how do I call the ServiceStack endpoints to properly authenticate. How are the callbacks handled on mobile?
I'm a bit stuck with this
Have a look at the TechStacksAuth repository which provides an example of how to use the Xamarin.Auth component to authenticate with a ServiceStack OAuth backend like Twitter.

Facebook app with REST API

Can I create a new Facebook app to use old REST api for user authentication. I would like to use the method auth.login for user authentication. Is it possible to use REST api with new facebook apps?
The Facebook's legacy REST API does not work for new Facebook apps registered after Apr/2013. However, REST API is still supported for existing Facebook app created before Apr/2013.
You will get "Error 3 : Application does not have the capability to make this API call" when trying to access REST API from the new Facebook app.
For newer Facebook app, please use Graph API to achieve the similar functionality as in the legacy REST API.
The REST API is deprecated now. Blog post here: https://developers.facebook.com/blog/post/616/

Facebook App. with GWT

I am writing a Facebook Application using the Google Web Toolkit. My methodology to authenticate users is using the graph-api to get the access token with Open authentication as told in this article:
restfb: Writing a facebook application with java (using the new graph api)
But in the very first step. Facebook doesn't allow to redirect to a page(even if it's facebook itself) from the canvas. So it creates a link. I guess there's a php solution for this in this article:
How to authorize Facebook app using redirect in canvas?
How can we apply this solution(or any other solution) to GWT directly in Java?
Best option is to use JAVAScript and wrap it with JSNI, otherwise do it from the backend.
There's an existing library that you can use: http://code.google.com/p/gwt-facebook/