Implement facebook android sdk in my android project
<p>Now,I want to do an app to login and upload photo to facebook
I downloaded facebook android sdk file zar
I created a project SocialNetwork and I also import archive file sdk above.
It as follow:( i don't have permission to upload image directly)
<a href="http://nn2.upanh.com/b6.s26.d2/1e48fcdafe93b494c89afdb4897c1145_45504792.project1.png" rel="nofollow">http://nn2.upanh.com/b6.s26.d2/1e48fcdafe93b494c89afdb4897c1145_45504792.project1.png</a></p>

<p>But i don't know how use facebook sdk in LoginPage class because their package not as like.I want to call methods in facebook sdk to implement login and upload photo tomy app.How i must do?
When i add facebook sdk it displays error at this part in Facebook class</p>

<pre><code>    @Override
    public void onServiceConnected(ComponentName className, IBinder service) {
        messageSender = new Messenger(service);
        refreshToken();
    }

    @Override
    public void onServiceDisconnected(ComponentName arg) {
        serviceListener.onError(new Error("Service disconnected"));
        // We returned an error so there's no point in
        // keeping the binding open.
        applicationsContext.unbindService(TokenRefreshServiceConnection.this);
    }
</code></pre>
