[View] [Edit] [Lock] [References] [Attachments] [History] [Home] [Changes] [Search] [Help]
test[fb-web] 14 Login Status
"Determine if a user has authenticated the app"
FB current getLoginStatus: [:response| | status |
status := response#status.
status = #connected ifTrue: [
UI8Inspector openOn: response
] ifFalse: [
response#status = #not_authorized ifTrue: [
self error: 'The user is logged in to Facebook, but has not authenticated the app'
].
self error: 'The user isn''t logged in to Facebook.'
,' Status=' ,response#status
]
]
References