Hey Yoni,
I did get some timeout stuff working, but never figured out what the root cause was. Mucked with all sorts of things to figure it out.
My code for setting the timeouts:
...
Type: Posts; User: Rob Blair; Keyword(s):
Hey Yoni,
I did get some timeout stuff working, but never figured out what the root cause was. Mucked with all sorts of things to figure it out.
My code for setting the timeouts:
...
So a year, 5 months later, the model does not have new fields.
Is this SOP for the Spring Social Facebook API -
coders should roll their own additions if there are other fields they want?
I also...
So I've not been able to reproduce my problems locally, but did get it to repro on the remote server, even after substituting the SimpleClientHttpRequestFactory in to the FacebookTemplate.
The...
I've extensively profiled the call times, and can vouch that it's not taxing the network. The data access rate is far below Facebook limits. When performing normally, calls never are more than 5...
Yes, I could call setRequstFactory(). I figured that there was some reason the guts picked HttpComponentsClientHttpRequestFactory over SimpleClientHttpRequestFactory if HttpClient was present. ...
The hard part is that because so many fields are final, or don't have accessors, I can't even kludge it. I just want the hooks to do it in code, worst case scenario.
I'm not even sure if it's a...
I'm using Spring social 1.0.1.RELEASE and framework 3.1.0.RELEASE to make various Facebook calls, and a 1.1.0 facebook variant.
I'm having a very hard time figuring out how to set the read timeout...
Situation:
Got a spring-facebook Photo object (1.1.0 snapshot), then serialized to database.
(mongo, which uses a JSON like structure)
On de-serialize, it blows up because the constructor...
just did a git pull, saw updates to a bunch of docs stuff, but no code changes.
and comparing to what I have checked in (using SVN for our local source control, merging vendor to our branch)
the graph explorer shows this post that returns json that causes a NPE in Post.getLikeCount().
{
"id": "100003283444808_189987347787379",
"from": {
"name": "RobInq BlairInq",
"id":...
habuma, don't go rushing to add this stuff quite yet -
I've found another facet in the facebook world.
Some of the FQL values in json can come as a sparse array OR regular array
eg, ...
Here is a possible modification to FqlResult, in the vein of FqlResultMapper:
If you need to map an array of primitives, like Integer, String, or Array, the existing FqlResultMapper will not...
https://jira.springsource.org/browse/SOCIALFB-75
Mostly about the getList() issue, but touches on the whole set of getXYZ issues.
I will do that. I do like to take my time, make sure I understand the code and intent before adding a bug. Nobody wants JIRA full of hundreds of wish-list items.
query, modified for simplicity:
SELECT post_id, viewer_id, tagged_ids FROM stream WHERE source_id=100002487294420 AND updated_time>1333363915
returns
{ "data": [ {
"post_id":...
Another thing worth mentioning for anybody else making adapters for FQL - their documentation does not accurately represent the json they return.
They say things like...
Comment about FqlResult: Most of the calls to getX return null if it's not present in the object map;
However, getTime will throw an exception.
public Date getTime(String fieldName) {
try...
http://developers.facebook.com/docs/reference/fql/stream/ has the data for the stream table, which is the wall / home type feed.
and a few others. The documentation is somewhat thin, so your...
OK, I'll certainly give it a peek.
As for the mapObject logic, I'm tempted to add in more of the full jackson mapping logic. Many of the tables have complex sub-elements, which will start being...
I saw the task https://jira.springsource.org/browse/SOCIALFB-8 targeted at 1.1.0 release, and wondered how it was going.
I'm about to start diving in to some serious FQL work, and wanted to be...
Thanks habuma!
One other thing I needed to add - a public deserializer to turn the JSON Status posts into Post sub-classes, in FeedOperations:
/**
* Turns a generic list of jsonNodes that...
I'm new to the Git world, and not sure if my corporate masters are OK with me giving code away. They can be a bit fussy.
And yes, I do completely understand not wanting to double the number of...
Habuma, I never got any response to the request I made to support bulk fetches by id on the same connection.
See...
Emmet,
my advice here (as in most places) is to go directly to the docs and see what they say.
Then go to the graph api explorer and see what you can get.
That lets you explore the app in real...
If the FB user does not log off, then plain (without offline_access) tokens keep working for a while, perhaps 2 hours.