2011-10-06 71 views
1

我遇到了一個問題,我試圖根據用戶提供的一些輸入信息將用戶發送到移動共享對話框。這適用於桌面瀏覽器和我試過的Android瀏覽器。但是,如果用戶尚未登錄,它將在iPhone 3G上失敗。用戶會被提示登錄,但登錄後他們在Facebook上面臨空白屏幕 - 基本上是死路一條。登錄後不出現facebook移動共享對話框

這裏是我試圖把它們發送到(由隱藏客戶端信息編輯)的網址:

http://m.facebook.com/dialog/feed?app_id=123456789&display=touch&link=http%3a%2f%2fwww.someotherdomain.com%2fdir%2fsubdir%2f12345&picture=http%3a%2f%2fwww.someotherdomain.com%2fImages%2fdir%2fsubdir%2f12345678.jpg&name=Some+Name&caption=Some+Caption+-+Its+Location&description=Title%20Of%20Event%2c+now+playing+at+Some+Location.&redirect_uri=http%3a%2f%2fsomedomain.com%3a54251%2fcheckin%2fthanks%2ffacebook%2fsuccess%2f

這裏是登錄屏幕上的URL時,它會出現在iPhone:

http://m.facebook.com/login.php?app_id=123456789&cancel=http%3A%2F%2Fsomedomain.com%2Fcheckin%2Fthanks%2Ffacebook%2Fsuccess%2F&next=http%3A%2F%2Fm.facebook.com%2Fdialog%2Ffeed%3F_path%3Dfeed%26app_id%3D123456789123456%26redirect_uri%3Dhttp%253A%252F%252Fsomedomain.com%252Fcheckin%252Fthanks%252Ffacebook%252Fsuccess%252F%26display%3Dtouch%26link%3Dhttp%253A%252F%252Fwww.someotherdomain.com%252Fdir%252Fsubdir%252F12345%26picture%3Dhttp%253A%252F%252Fwww.someotherdomain.com%252FImages%252Fdir%252Fsubdir%252F12345678.jpg%26name%3DSome%2BName%26caption%3DSome%2BCaption%2B-%2BIts%2BLocation%26description%3DTitle%2BOf%2BEvent%252C%2Bnow%2Bplaying%2Bat%2BSome%2BLocation.%26from_login%3D1&rcount=1&_rdr

我錯過了什麼?也許我沒有正確地編碼參數中的URL? This question sounds similar,但是這着重於授權應用程序,我不希望這樣 - 我只是想讓用戶分享一些東西。謝謝!

回答

0

如果我轉發到www.facebook.com而不是m.facebook.com,最終會爲我工作。這與Facebook的文檔一致,但在此之前,我一直在移動瀏覽器獲取非移動頁面的問題,除非我特別指出m.facebook.com ...似乎他們清除了它的一部分。