facebook - FBWebDIalogs generates 'An error has occured' when trying to post a feed in iOS -
i'd implemented app both on fb , ios published updates users timeline using feed dialog. working intended until few months ago, when users started seeing 'an error has occurred. please try again later' page.
i set out update fb sdk latest version , fix issue. have had success posting stories basic tutorial app, once removed native ios fb login settings, error screen re-appeared.
steps reproduce:
start fresh ios simulator.
log in facebook via setting screen.
run basic tutorial, fbwebdialogs presentfeeddialogmodallywithsession:parameters:handler: added share button.
login works expected.
share works expected , presents web dialog allowing me post timeline.
quit app (not switch out of it)
from settings, delete facebook account.
re-run app , tap login -- presented web login dialog.
login , 'share' make call fbwebdialogs.
note 'error has occurred' screen.
dismiss , tap logout button.
tap login, , once again, presented web login dialog.
login , notice asked confirm fbapps access (you'll told it's been authorized). tap ok.
tap share , see 'feed' dialog expected.
(you can logout or not @ step, makes no difference). go ios settings page , re-add facebook account.
run app, , tap log in.
you presented web ui login screen (this not expected).
after logging in, tap share initiate fbwebdialog call.
note 'error has occured' screen. @ point, impossible post except deleting facebook account in ios settings , going step 8.
the problem seems occur if user ever deletes fb settings device. also, if user has had fb settings on device via ios settings screen , tries log in via web ui, feed dialog post fail.
i'd know how solve problem.
Comments
Post a Comment