0
이 코드와 FB의 autorize 대화 상자를 호출하기 위해 노력하고있어 도시하지 않음 :전화 페이스 북 autorize 대화 상자 -
//return true if is autologged
//return false if facebook login dialog is called
public boolean LoginAsync(Activity act)
{
m_strLastError="";
boolean bTryLogin= true;
if ((m_fbkey != null) && (m_fbkey.length() > 0))
{
facebook.setAccessToken(m_fbkey);
bTryLogin = !facebook.isSessionValid();
}
if (bTryLogin)
{
facebook.authorize(act, new String[] { "email", "offline_access", "publish_stream", "read_stream"}, new LoginDialogListener());
return false;
}
//"succesfull 'autologin'
return true;
}
그것은 때 클릭 버튼 테스트 응용 프로그램에서 잘 작동하지만, 한 OnCreate로 움직일 때 작동이 중지. 대화가 더 이상 나타나지 않습니다. 빈 화면 만. OnCreate에서 사용하기 때문에 화를 낼 수 있습니까?
은 (http://developers.facebook.com/docs/offline-access-deprecation/)이 질문의 –
Ansvwer이 질문에 관련된다 offline_access' 허가'의 중단] 조심 // facebook.stackoverflow.com/questions/9130133/android-autorize-call-twice – Kostadin