Facebook SDK wont post on wall - iphone

After reading almost every question and answer, still can't get it to work.
Why do I keep getting this error when trying to post on my facebook wall?
2012-09-19 11:57:17.389 projectQuantity[5131:f803] received response
2012-09-19 11:57:17.390 projectQuantity[5131:f803] The operation couldn’t be completed. (facebookErrDomain error 10000.)
2012-09-19 11:57:17.391 projectQuantity[5131:f803] Err details: Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x6a9c100 {error=<CFBasicHash 0x6a9b140 [0x1743b48]>{type = mutable dict, count = 3,
entries =>
2 : <CFString 0x6a9b420 [0x1743b48]>{contents = "type"} = <CFString 0x6a9b5b0 [0x1743b48]>{contents = "OAuthException"}
3 : <CFString 0x6a9b550 [0x1743b48]>{contents = "message"} = <CFString 0x6a9b4b0 [0x1743b48]>{contents = "An active access token must be used to query information about the current user."}
6 : <CFString 0x6a9be30 [0x1743b48]>{contents = "code"} = 2500
Why is that happening? thanks everyone.

This is an old question using the very old Facebook SDK, but now, with the new Facebook SDK it's easier than ever.
Already solved. Thanks everybody.
Download it here and follow the guide: http://developers.facebook.com/ios/
Enjoy.

Related

How to access values from error responses

Hi I am getting an error from the api response bases on the error code I have to show the error popup.
Error Domain=com.ca.mailina.targetAPI:ErrorDomain Code=1854 "The data
couldn’t be read because it isn’t in the correct format." UserInfo=
{mailinaInfoHeaderInfoKey=<CFBasicHash 0x600000bff000 [0x7fff8004b340]>{type =
immutable dict, count = 8,
entries =>
0 : Pragma = no-cache
1 : x-up-err = 0001854
2 : Content-Type = <CFString 0x6000011c63a0 [0x7fff8004b340]>{contents = "application/json;charset=UTF-8"}
3 : x-mail-err = 100
4 : x-uxp-err = 30102
6 : Date = <CFString 0x6000011c6370 [0xgghyd654fx40]>{contents = "Tue, 17 Aug 2021 10:37:19 GMT"}
10 : Content-Length = 907
11 : Cache-Control = no-store
}, NSLocalizedDescription=The data couldn’t be read because it isn’t in the correct format., status-code=401}
I have to check the condition based on 4 : x-uxp-err = 30102 which is on the fourth position of error response now the problem is I am not able to access the 4th passion of response, guide me to get the solution, example
if x-uxp-err == 30102 {
print("open popup 1")
} else {
print("open popup 2")
}

Swift error when added new entity (Core Data)

I have just created a new xcode project (Master-datail application) with Core Data.
After I created a new entity (no code added into controllers) I have tried to open the app on iOS simulator and I got this error
2015-03-27 17:59:20.882 Blog Reader[2677:301117] CoreData: error:
-addPersistentStoreWithType:SQLite configuration:(null) URL:file:///Users/stevik/Library/Developer/CoreSimulator/Devices/29A6C356-8AFA-48BA-B0C0-B6031D760ECE/data/Containers/Data/Application/88603D30-BAED-4F1A-95AB-ADD87C3A469B/Documents/Blog_Reader.sqlite
options:(null) ... returned error Error Domain=NSCocoaErrorDomain
Code=134100 "The operation couldn’t be completed. (Cocoa error
134100.)" UserInfo=0x78f4edd0 {metadata={
NSPersistenceFrameworkVersion = 519;
NSStoreModelVersionHashes = {
Event = <5431c046 d30e7f32 c2cc8099 58add1e7 579ad104 a3aa8fc4 846e97d7 af01cc79>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = SQLite;
NSStoreUUID = "25DE15EE-E903-4544-888B-7326455CF4B3";
"_NSAutoVacuumLevel" = 2; }, reason=The model used to open the store is incompatible with the one used to create the store} with
userInfo dictionary {
metadata = {
NSPersistenceFrameworkVersion = 519;
NSStoreModelVersionHashes = {
Event = <5431c046 d30e7f32 c2cc8099 58add1e7 579ad104 a3aa8fc4 846e97d7 af01cc79>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = SQLite;
NSStoreUUID = "25DE15EE-E903-4544-888B-7326455CF4B3";
"_NSAutoVacuumLevel" = 2;
};
reason = "The model used to open the store is incompatible with the one used to create the store"; } 2015-03-27 17:59:20.885 Blog
Reader[2677:301117] Unresolved error Optional(Error
Domain=YOUR_ERROR_DOMAIN Code=9999 "Failed to initialize the
application's saved data" UserInfo=0x78ea27b0
{NSLocalizedDescription=Failed to initialize the application's saved
data, NSUnderlyingError=0x78f4edf0 "The operation couldn’t be
completed. (Cocoa error 134100.)", NSLocalizedFailureReason=There was
an error creating or loading the application's saved data.}),
Optional([NSLocalizedDescription: Failed to initialize the
application's saved data, NSUnderlyingError: Error
Domain=NSCocoaErrorDomain Code=134100 "The operation couldn’t be
completed. (Cocoa error 134100.)" UserInfo=0x78f4edd0 {metadata={
NSPersistenceFrameworkVersion = 519;
NSStoreModelVersionHashes = {
Event = <5431c046 d30e7f32 c2cc8099 58add1e7 579ad104 a3aa8fc4 846e97d7 af01cc79>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = SQLite;
NSStoreUUID = "25DE15EE-E903-4544-888B-7326455CF4B3";
"_NSAutoVacuumLevel" = 2; }, reason=The model used to open the store is incompatible with the one used to create the store},
NSLocalizedFailureReason: There was an error creating or loading the
application's saved data.])
You can't change the Core Data model and continue to use the same persistent store file unless you implement model migration. Apple provides considerable documentation on this. However during app development you can usually just delete the app from the device/simulator and install a new copy. That deletes any existing data, but often that's OK while working on the model.
Whenever there is a change in your core data model whether an entity added or any attribute is changed. Delete the application from the simulator and run it again. It won't crash now.

Getting lots of CloudKit errors (500) all of a sudden

Nearly everything my app does in CloudKit now returns this error:
<CKError 0x14ecff70: "Server Rejected Request" (15/2001); "Request failed with http status code 500">
(lldb) po [error userInfo]
{
CKDHTTPHeaders = {
Connection = close;
"Content-Length" = 0;
"X-Apple-Request-UUID" = "F8E4C91A-5F72-4792-9F13-BB5FBB10BA8E";
"X-Responding-Instance" = "ckdatabaseservice:32400203:mr11p24ic-ztbu11100101:8103:15B153:16274";
};
CKHTTPStatus = 500;
NSDebugDescription = "CKInternalErrorDomain: 2001";
NSLocalizedDescription = "Request failed with http status code 500";
NSUnderlyingError = "<CKError 0x14d5af70: \"Unknown Error\" (2001)>";
}
Any ideas why this could be happening? I'm tempted to blame it on temporary CloudKit server issues (which is how I would want to interpret an error 500)...but I don't know if that's appropriate.
This is a bug on the iCloud server that's affecting your container. I've grabbed logs from that request and the server team will clean up your container soon. In the meantime you can use a different container name for testing.
If you'd like to file a radar for this we can let you know when the container gets cleaned up.

post comment on facebook error: An unexpected error has occurred. Please retry your request later

I get an error when I post a comment in my post:
code Koala:
Koala.config.api_version = "v2.0"
#graph = Koala::Facebook::API.new(access_token)
comment = #graph.put_comment(params[:comment][:id_ref_facebook], params[:comment][:content])
code FB_graph:
post = FbGraph::Post.new(params[:comment][:id_ref_facebook])
bool = post.comment!(
:access_token => access_token,
:message => params[:comment][:content]
)
I get this error:
message: An unexpected error has occurred. Please retry your request later. [HTTP 500]
The comment is posted in facebook, but the unique ID of the comment is not returned.

Facebook Connect error: 1000

I get this following error when I am trying to integrate the fbconnect to my app.
I tried everything possible, but the error still continues.
Can anyone help me, thanks in advance.
2012-04-05 19:46:05.805 YBGreetings[12264:17603] yes granted
2012-04-05 19:46:17.035 YBGreetings[12264:17603] received response
2012-04-05 19:46:17.036 YBGreetings[12264:17603] Err message: (null)
2012-04-05 19:46:17.037 YBGreetings[12264:17603] Err code: 10000
2012-04-05 19:46:17.038 YBGreetings[12264:17603] Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x9131c90 {error={type = mutable dict, count = 3,
entries =>
2 : {contents = "type"} = {contents = "OAuthException"}
3 : {contents = "message"} = {contents = "An active access token must be used to query information about the current user."}
6 : {contents = "code"} = 2500
Extract from error log:
An active access token must be used to query information about the current use
So while doing query, consider to include access token