Android AsyncFacebookRunner - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android AsyncFacebookRunner class.

This code example shows how to use the following methods:request
	 
	private void postToFacebook(String review) {	
		mProgress.setMessage("Posting ...");
		mProgress.show();
		 
		AsyncFacebookRunner mAsyncFbRunner = new AsyncFacebookRunner(mFacebook);
		 
		Bundle params = new Bundle();
    		 
		params.putString("message", review );
		params.putString("name", "Ruboto");
		params.putString("caption", "ruboto.org");
		params.putString("link", "http://ruboto.org/");
		params.putString("description", "Ruboto, sharing your jruby scripts is fun");
		params.putString("picture", "http://ruboto.org/ruboto.png");
		 
		mAsyncFbRunner.request("me/feed", params, "POST", new WallPostListener());
	} 
 
	private final class WallPostListener extends BaseRequestListener { 

7
CodeRank
This code example shows how to use the following methods:request
	 
	private void postToFacebook(String review) {	
		mProgress.setMessage("Posting ...");
		mProgress.show();
		 
		AsyncFacebookRunner mAsyncFbRunner = new AsyncFacebookRunner(mFacebook);
		 
		Bundle params = new Bundle();
    		 
		params.putString("message", review);
		params.putString("name", "Dexter");
		params.putString("caption", "londatiga.net");
		params.putString("link", "http://www.londatiga.net");
		params.putString("description", "Dexter, seven years old dachshund who loves to catch cats, eat carrot and krupuk");
		params.putString("picture", "http://twitpic.com/show/thumb/6hqd44");
		 
		mAsyncFbRunner.request("me/feed", params, "POST", new WallPostListener());
	} 
 
	private final class WallPostListener extends BaseRequestListener { 

6
CodeRank
This code example shows how to use the following methods:request
	 
	private void postToFacebook(String review) {	
		mProgress.setMessage("Posting ...");
		mProgress.show();
		 
		AsyncFacebookRunner mAsyncFbRunner = new AsyncFacebookRunner(mFacebook);
		 
		Bundle params = new Bundle();
    		 
		params.putString("message", review);
		params.putString("name", "Dexter");
		params.putString("caption", "londatiga.net");
		params.putString("link", "http://www.londatiga.net");
		params.putString("description", "Dexter, seven years old dachshund who loves to catch cats, eat carrot and krupuk");
		params.putString("picture", "http://twitpic.com/show/thumb/6hqd44");
		 
		mAsyncFbRunner.request("me/feed", params, "POST", new WallPostListener());
	} 
 
	private final class WallPostListener extends BaseRequestListener { 

6
CodeRank
This code example shows how to use the following methods:
 
        public void onComplete(Bundle values) {
            final String postId = values.getString("post_id");
            if (postId != null) {
                Log.d("Facebook-Example", "Dialog Success! post_id=" + postId);
                new AsyncFacebookRunner(authenticatedFacebook).request(postId, 
                        new TestPostRequestListener()); 
            } else { 
                Tests.this.runOnUiThread(new Runnable() {
                    public void run() { 
                        wallPostText.setText("Wall Post Failure");
                        wallPostText.setTextColor(Color.RED);
                    } 
                }); 
            } 
        } 
 
        public void onCancel() { } 
 
        public void onError(DialogError e) {
6
CodeRank
This code example shows how to use the following methods:
    private LocationManager locationManager;
    private MapView map;
    private LocationListener locationListener;
    private List<Coords> waypoints = new LinkedList<Coords>();
    Facebook facebook = new Facebook("173796479433716");
    AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(facebook);
 
    @Override 
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_receive_data); 
         
        //LOGIN FB 
        facebook.authorize(this, new DialogListener() {
            @Override 
            public void onComplete(Bundle values) {}
 
            @Override 
            public void onFacebookError(FacebookError error) {}
 
3
CodeRank
This code example shows how to use the following methods:
	 
	private SharedPreferences pre = getSharedPreferences("user_info",MODE_PRIVATE);
	 
    //Facebook ID.test = 235534816498872  
    Facebook facebook = new Facebook("105279122897708");
    AsyncFacebookRunner runner = new AsyncFacebookRunner(facebook);
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		 
		//Keyboard hidden 
		this.getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); 
		 
		if (pre.getBoolean("Launched", false) == false) {		
			setContentView(R.layout.error);
		}  
		 
		else { 
			setContentView(R.layout.post);
3
CodeRank
This code example shows how to use the following methods:
	public void initializeAll(String appId, Activity activity, Context context, String[] permissions) {
		if(isInitialized)
			return; 
		 
		this.mFacebook = new Facebook(appId);
	 	mAsyncRunner = new AsyncFacebookRunner(mFacebook);
	 	 
		SessionStore.restore(mFacebook, context);
        SessionEvents.addAuthListener(mSessionListener);
        SessionEvents.addLogoutListener(mSessionListener);
         
		this.mPermissions = permissions;
		this.mHandler = new Handler();
		this.mActivity = activity;
	} 
	 
	/** 
	 * Login to the face book 
	 */ 
	public void loginToFacebook() { 
3
CodeRank
This code example shows how to use the following methods:
        this.expires = 0;
    } 
 
	public SessionManager(String FB, Context context, Class<?> cls) {
    	this.facebook = new Facebook(APP_ID);
        this.mAsyncRunner = new AsyncFacebookRunner(facebook);
        this._context = context;
        this.pref = _context.getSharedPreferences(PREF_NAME, PRIVATE_MODE);
        this.editor = pref.edit();
        this.access_token = null;
        this.expires = 0;
        this.cls = cls;
    } 
     
    /** 
     * Create login session 
     * */ 
    public void createLoginSession(String name, String email) {
        // Storing login value as TRUE 
        editor.putBoolean(IS_LOGIN, true);
3
CodeRank
This code example shows how to use the following methods:
    public static Facebook getFacebook()
    { 
    	if(mFacebook == null)
    	{ 
    		mFacebook = new Facebook(APP_ID);
    		mAsyncRunner = new AsyncFacebookRunner(mFacebook);
    	} 
    		 
    	return mFacebook;
    } 
     
    /*** 
     * Obtiene la instancia de la clase de AsyncFacebookRunner 
     * la misma se crea cuando se crea la instancia de la clase 
     * de Facebook, por lo que esta debe ser creada antes de 
     * poder utilizar este método. 
     * @return 
     */ 
    public static AsyncFacebookRunner getAsyncFacebookRunner()
    { 
3
CodeRank
This code example shows how to use the following methods:
 
public class PuzzleSomethingSettingActivity extends Activity {
	 
	 
	Facebook facebook = new Facebook("166331713495110");
	AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(facebook);
	 
	 
	//Media player 
	MediaPlayer mp;
	boolean pause = true; // is media playing?!
			 
	//Media player volume relatives 
	AudioManager audioManager;
	int maxVolume;
	int curVolume;		
	SeekBar seekbar2;
	 
	//Setting pop-window 
	View popupWindowView;
3
CodeRank

Related Android AsyncFacebookRunner Questions & Answers:

See Code Examples for Android AsyncFacebookRunner Methods: