Im wondering if there is anyway to interogate facebook data on user interests. i.e. Retrieve the following data sets:
What are the most like interests/Pages on facebook?
Retreive the current users facebook interest and also their friends interests?
Really want to know if we can get facebook global interest/like data and than also if the user connects their facebook account to the site than we can also retrieve their interest data.
Thanks in advance
So you want to implement something like http://www.socialbakers.com/ ?
To get 1) you'd have to periodically poll the API for the public fan count of a known set of page IDs to see the current fan counts ( i think this is what socialbakers do)
To get 2, get the user_likes and friend_likes extended permissions from your users and access the /likes connection of the users whose likes you want to read
Yes you can retrieve user interests from facebook. You just need to include the user_interests permission required in your jsp page.
https://developers.facebook.com/tools/explorer/
If you are using spring social you can generate your own url for /me/interests:
URIBuilder uriBuilder1 = URIBuilder.fromUri(facebook.GRAPH_API_URL + "me" +"/interests");
String s = facebook.restOperations().getForObject(uriBuilder1.build(), String.class);
Related
I'm evaluating the hippo cms,
after add hst-security as a dependence ,so public site need login, but how can I fetch the login user's detail information like email and something else.
I used HstRequest.getUserPrincipal ,but only get the username.
and tried to write a query "SELECT_USER_QUERY = "SELECT * FROM hipposys:user"
but only get a user 'liveuser', after login with admin.
so , Anyone can help me ,how can I get the detail info?
You can do this:
final User user = JcrSessionUtils.getHippoSession(request.getRequestContext().getSession()).getUser();
user.getEmail();
user.getLastLogin()
i`m using this link to get my followers list usernames
https://api.instagram.com/v1/users/self/followed-by?access_token=XXXXXX
it returns 50 users with a pagination url for the next 50
the problem is the pagination url will stop showing after i reach 245 users, i do have more than 300.
when i tried to get a list os followers of another user thats not mine and its a public user with more than 600 followers i managed to get al the list
https://api.instagram.com/v1/users/{user-id}/followed-by?access_token=XXXXXX
so i said maybe i should change the request link and replace self with my userid because thats the only different between the two requests BUT still getting the same result, only 245.
https://api.instagram.com/v1/users/{my-user-id}/followed-by?access_token=XXXXXX
so is there another way to get all my followers usernames ? or Instagram is limiting this endpoint ?
thanks in advance :)
UPDATE
I even tried to add &count=-1 and it does not work
Tried &count=100 , &count=300 and still showing only to 245 users
We are using Rally Agile tool and Im trying to request all User Strories expecting to get list like:
S12
S13
S53
etc.
when I use [rally-server-address]/slm/webservice/v2.0/hierarchicalrequirement.js I receive list of:
US12
US43
etc.
Maybe I do not understand how to query User Stories clearly... Any help are really appreciated.
Could you elaborate on what is the problem with US12 US43 etc ? Is it the order? If you want the user stories to be ordered by FormattedID, you may specify it using order parameter, &order=FormattedID:
https://rally1.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement?workspace=https://rally1.rallydev.com/slm/webservice/v2.0/workspace/1111&query=&start=1&pagesize=200&&fetch=FormattedID,ScheduleState&order=FormattedID
If you want your user stories prefix to be 'S' instead of 'US', Work Product Prefixes can be changed on a workspace level in Setup. Workspace administrator rights are necessary.
Also, when using v2.0 there is no need to have .js in the query.
I want to setup the following url in my MVC4 website, using the user's full name in the url:
http://www.myapp.com/profile/steve-jones
I have setup the following route in Global.asax:
routeCollection.MapRoute(
"profile", "profile/{userName}",
new { controller = "myController", action = "profile", userName = string.Empty
});
And I can take the parameter 'steve-jones' and match it to a user with matching name. My only problem though is, what if there is more than one 'Steve Jones', how can I handle this?
Does anyone know of a workaround/solution to this so that I can use a user's full name as part of the url and still be able to retrieve the correct user in the controller method?
Am I forced into including the user's id with the url (something that I do not want to appear)?
The usual way of handling this is by appending a number when creating the profiles. So if "steve-jones" is already a name in the database, then make the user's display name "steve-jones2". You basically have to insist that all profile urls are unique, which includes updating any existing database and account creation code.
Alternatively (and/or additionally), if two same names are found then have the script reroute to a disambiguation page where the user is presented with links and snippet of profile info of the many existing Steve Joneseses so they can go to the full correct profile.
Another way of handling it is by giving all user profiles an additional numeric code on the end. At my university all logins are based on name, so they give everyone pseudo-random 3-digit extensions so that they are safe as long as they don't get 1000 people with the exact same names :)
Some people might be happier being steve-jones-342 if there is no steve-jones or steve-jones1, if you're concerned.
Querying user data on Facebook Graph via the Javascript API will not return all fields.
For example, the following query:
/search?q=David Blades&type=user&fields=location,work,id,name,picture,link
Returns everything except work and location.
Does anybody know the reason why?
Because these fields are not publicly available, please refer to the User object:
Name Permission
id No access_token required
name No access_token required
...
location user_location or friends_location