Image on Facebook Wall and Facebook Wall

I am very tired of API issues like Facebook API, Weather API, etc.

I used both APIs in my project. Graphics API for Facebook and Google Weather API for weather, but now upon completion of the project, both APIs do not work. The Google Weather API depreciated in November.

And the Facebook features that I used (the image on the wall and the image on the friend’s wall) worked on the last day, but now they don’t.

The problem is that when I log in, I get the message The page you requested is not Found and under the link to return to the previous page.

enter image description here

And when I click the "back to previous page" link, it shows a message:

 An error has occurred with AppName, please try again API error code : 100 API error Description : Invalid Parameter Error_message : cancel_URL URL is not properly formatted 

I want to know the Facebook API solution. Is this a problem with every developer? if the API has changed or changed what can we do regarding?

+4
source share
3 answers

How long have you updated facebook API? About two weeks ago, I had to remove the entire API, download and modify all the publishing code that my application used. He stopped working completely and had no idea until application users complained. Some necessary changes for the new facebook API:

Facebook recommends putting them in your appDelegate if you look at the latest sample applications.

  #import <FacebookSDK/FacebookSDK.h> - (BOOL)openSessionWithAllowLoginUI:(BOOL)allowLoginUI { NSArray *permissions = [NSArray arrayWithObjects:@"publish_actions", nil]; return [FBSession openActiveSessionWithPermissions:permissions allowLoginUI:allowLoginUI completionHandler:^(FBSession *session, FBSessionState state, NSError *error) { if(state==513){ //facebook usage has been approved } }]; } - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { // We need to handle URLs by passing them to FBSession in order for SSO authentication // to work. return [FBSession.activeSession handleOpenURL:url]; } 

And if you want to make your post, do something like this:

  if(facebookEnabled==YES) { NSString *fbText=[NSString stringWithFormat:@"whatever text you want to post"; [FBRequestConnection startForPostStatusUpdate:fbText completionHandler:^(FBRequestConnection *connection, id result, NSError *error) { }]; } 

Let me know if you have any questions. Hope this helps!

+1
source

Well, I'm not sure if this is a code error, but Facebook is having problems right now.

My FB app on iOS no longer works. You can try again by turning on the sandbox mode (in the settings of the FB application) with the developer account. This works for me.

http://developers.facebook.com/bugs/463219573709230?browse=search_504fc79a6ea272d92740759

0
source

Look at my solution, but it is only for publication on the user's wall http://www.developers-life.com/facebook-compose-view.html

0
source

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


All Articles