Facebook iOS SDK - FWWebDialogs does not send a message

I am using the Facebook SDK in an iOS app. I log in by pulling in lists of friends, etc.

I added the code to send the request:

[FBWebDialogs presentRequestsDialogModallyWithSession:session message:@"Message" title:@"Title" parameters:params handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) { // view cleanup here }]; 

A session is an FBSession stored in a class handling control. The options are suggestions , an array of friends to include. The problem described below occurs the same way if params is nil (in this case, the list shows all friends).

When I invoke a dialog, this is what appears:

Request screenshot

Please note that the text "Message" is missing, as well as the entire block of messages shown on different pages of the documentation on Facebook, for example https://developers.facebook.com/docs/ios/ios-sdk-games/requests/ .

I use the Facebook SDK 3.7.1, the latest version of this publication. The screenshot above is a simulator using a Facebook Test User account. The same problems occur on the device using a β€œreal” Facebook account.

+4
source share
2 answers

Apparently, this is "by design" !! :(

https://developers.facebook.com/bugs/605575982818621

+2
source

I see the same problem. This is apparently a very recent development, as previously the dialog showed a preview of the message. I also noticed that a dialog box displays a preview of the message if I specify the 'to' parameter; There is no preview of the message only if I omit the 'to' parameter so that all user friends are displayed in the dialog box. Unfortunately, I have no solution, but I would like to share these additional observations if it helps to get closer to the solution.

  • Andrew
+3
source

Source: https://habr.com/ru/post/1499520/


All Articles