Posting refines the url for facebook which no longer works

I used to have a working way of posting great songs on facebook.

They will appear like any other link shared from the mac or windows version of spotify.

Now, a few months later. I can publish links like www.domain.com, but I can no longer send links like http://open.spotify.com/track/4yLSpYlcO0jPPLTa3nW8zN

Can someone try to post a link like the one above and see if it appears as a game icon with an album cover on their facebook? I am wondering if facebook has changed its API to make this impossible? Im using FBGraph.

The result should look like this (as before):

http://voteplay.no/fbspotify.png

However, now instead, I get this error when using the spotify url:

Sorry, something went wrong. We are working to fix this as soon as possible.

UPDATE

the code:

‎- (IBAction)facebookShare:(id)sender {

PartyQAppDelegate *delegate = (PartyQAppDelegate *)[[UIApplication sharedApplication] delegate];
facebook = [delegate facebook];

if (![facebook isSessionValid]) {

facebook.sessionDelegate = delegate;

NSArray *permissions = [[NSArray alloc] initWithObjects:@"read_stream", @"publish_stream",@"offline_access", nil];

[facebook authorize:permissions];

NSLog(@"SESSION NOT VALID!");

}else {

NSLog(@"SESSION VALID!");

NSString *trackurl = [self openSpotifyEncode:self.currentTrackPlaying];

NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:trackurl, @"link",nil];

[facebook dialog:@"feed" andParams:params andDelegate:self];

}

}

- (NSString *)openSpotifyEncode:(NSString *)string {

NSString *encodedString = [NSString stringWithFormat:@"http://open.spotify.com/track/%@", [string substringFromIndex:14]];

return encodedString;

}

I resolved the error and no longer need help! Thanks for letting me know that it is still working. (Done, try to find a mistake).

The error was in the order of the code in appdelegate, but I still don't know why this would allow me to publish all the other links perfectly, and not define them.

+3
source share
1 answer

, Facebook . . Graph API Explorer: https://developers.facebook.com/tools/explorer/

Screen shot

, . , offline_access, Facebook.

+2

All Articles