Back to project page dw2020.
The source code is released under:
Apache License
If you think the Android project dw2020 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.fivehundredpx.api.auth; /*w w w .jav a 2 s . c o m*/ import java.util.ArrayList; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; public class FacebookAuthProvider extends XAuthProvider { private String facebookToken; public FacebookAuthProvider(String facebookToken) { super(); this.facebookToken = facebookToken; } protected ArrayList<NameValuePair> buildParameters(OAuthParameters params) { ArrayList<NameValuePair> tuples = new ArrayList<NameValuePair>(); tuples.add(new BasicNameValuePair(OAuthConstants.MODE, "facebook_auth")); params.put(OAuthConstants.MODE, "facebook_auth"); tuples.add(new BasicNameValuePair(OAuthConstants.X_TOKEN, facebookToken)); params.put(OAuthConstants.X_TOKEN, facebookToken); return tuples; } }