Unity Community |

@Jtown, I just pushed an update with the following change: added automatic conversion of Unicode characters for all Graph API methods
Last edited by JTown; 04-28-2012 at 07:15 PM.
Has anybody else noticed that in ios 5.1, if you log in to Facebook then immediately call showPostMessageDialog the dialogue box immediately closes? If you call showPostMessageDialog a second time it works and you can post.
This only happens in ios 5.1, ios 5.0 and lower it's fine. Would like to know if anybody else can reproduce this behaviour.
Hi Prime.
After revising your answer for the cause, I moved normally. Thank you!
Hi prime! making progress with the twitter binding, however when I attempt the following:
(with the aim of getting output like)
userName : userTweetCode:
I get results like:
meaning the "screen_name" is null for some reason while "text" works- how do I fix this?: some tweet here
EDIT:
Okay here is an extract from the logger you recommended:
Code:
n_reply_to_user_id_str: in_reply_to_status_id: text: Ghj created_at: Tue May 01 13:54:13 +0000 2012 in_reply_to_status_id_str: source: /////////redacted in_reply_to_user_id: retweet_count: 0 contributors: in_reply_to_screen_name: user: profile_image_url_https: https://si0.twimg.com/profile_images/490147714/matrix_normal.jpg show_all_inline_media: False contributors_enabled: False lang: en profile_use_background_image: True profile_sidebar_border_color: C0DEED profile_background_image_url_https: https://si0.twimg.com/images/themes/theme1/bg.png default_profile_image: False geo_enabled: False following: False name: yuriy nikshych profile_image_url: http://a0.twimg.com/profile_images/490147714/matrix_normal.jpg profile_link_color: 0084B4 profile_text_color: 333333 utc_offset: created_at: Wed Feb 04 19:02:44 +0000 2009 protected: False follow_request_sent: False id_str: 20080308 favourites_count: 0 notifications: False profile_background_color: C0DEED profile_background_tile: False id: 20080308 listed_count: 0 friends_count: 7 is_translator: False default_profile: True profile_sidebar_fill_color: DDEEF6 screen_name: yuriythebest profile_background_image_url: http://a0.twimg.com/images/themes/theme1/bg.png followers_count: 15 time_zone: verified: False url:
I've tried both "name" and "scene_name" but they seem to be null in Unity, while the logger says they have values
I've even tried
Code:
but that leads to the same result as before
@yuri, are you certain the screen_name property is in the root of the object? Judging by the log and Twitters documentation (https://dev.twitter.com/docs/api/1/g.../home_timeline) it would appear screen_name is not a root level key but is nested in another hash.
indeed good sir that was the case, many thanks!@yuri, are you certain the screen_name property is in the root of the object? Judging by the log and Twitters documentation (https://dev.twitter.com/docs/api/1/g.../home_timeline) it would appear screen_name is not a root level key but is nested in another hash.
For Facebook...
Is 'isSessionValid()' same as 'isLoggedIn()' ?
I know the latter was dropped, but is it okay to use the session in replacement of this?
Also, I just caught isSessionValide turn to TRUE even though I wasn't able to login properly. Investigating this one.
@shadow, isSessionValid will return true as long as there is a valid access token present that has not expired.
@chicano, the example does exactly what you are looking for. It grabs the user id and stores it in an instance variable.
Hey there,
I've been trying to post a tweet, but when I do so I get :
SendMessage: object TwitterManager not found!
The tweets are posted, but I can't notify the user as Action twitterPost is not triggered.
How can I solve that please ?
@kuroe, it looks like you do not have the TwitterManager prefab in your initial loading scene. Add it and the error will be resolved.
@Prime31, thanks, that did the trick ! Surprisingly the FacebookManager is working perfectly without having a prefab instance in the scene.
Hi Prime31,
Any idea on how to fix " Unknown identifier: 'HTTPVerb'."?
I'm coding in UnityScript and here's a snippet of my code:
Code:
var postParam : Dictionary.<String, Object> = new Dictionary.<String, Object>(); Facebook.instance.graphRequest("123456789/feed", HTTPVerb.POST, postParam, PostedToFriendsWall);
oh nevermind, Got it working, just added
Code:
import Prime31;
on top of script.
How big can a screenshot be when I upload it to facebook? Cause If we try to upload a screenshot it doesn't work. It just doesn't get uploaded. But if we upload a really low res image it works.
I am having some problems integrating Facebook into my game. I did managed to post to the wall before . However today I am getting this error from the Xcode:
ghashtable.c:294: assertion 'hash != NULL' failed,
It does one of the following every time i try to post : it asks for permissions and redirects me back or redirects me to Facebook or doesn't even ask for permissions and redirects right back. The Problem is that it keeps asking for permission(or just redirecting and going back) even when it supposedly got it . So i never get to actually posting.
I just noticed this behavior today, when i initially put in the code it seemed to work fine. I did not change the code...
any ideas what could be causing it?
my code:
public void FacebookButtonPressed1()
{
//Initialize
FacebookBinding.init( "*********" );
//Login Try
bool isLoggedIn = FacebookBinding.isSessionValid();
if (!isLoggedIn)
{
var permissions = new string[] { "publish_actions", "user_games_activity" };
FacebookBinding.loginWithRequestedPermissions( permissions );
}
else
{
Facebook.instance.postMessage( "1234", completionHandler );
}
}
@eric, you will need to check Facebooks docs for the image size constraints.
@katawa, have you tried deleting your app an reinstalling? That often clears up odd issues like this whn testing.
Yes, I deleted it and reinstalled it several times. No luck...
Perhaps it is somehow connected to the app settings in Facebook. I noticed that if the app is set to native iOS then i do not at all get to the "permission asking" state, it's just redirects to Facebook and then redirects back (no posting).
If it set to a web app then i get to see the permissions window, i get to allow it but that is all. The second time it takes me to the permissions again,never get to actually posting to a wall.
It didn't happen few days ago , when i initially integrated the plugin. Perhaps it is something else in the Facebook app settings i changed unintentionally...
I will really appreciate any help on fixing this issue.
Thanks,