Get user meta (cocoaLibSpotify) - ios

I need to get hold of a user's profile image. Can't seem to find anything that points me in the right direction. And also, how can I get the full name of the user (not the username)?
Thanks!

If the full name is available, it'll be in the displayName property of the user. User images are not provided by CocoaLibSpotify.

Related

readMask value to get the display names form new GMB API

I am running this line of code:
location_list = self.service_mbbi_v1.accounts().locations().list(parent=account_name,readMask='name').execute()
And I get the list of the location IDs but I don't manage to get the Location display name, the display name, not just the ID. I wrote google and told them about my issue and they told me they are looking into it but it has been 2 weeks and no response yet. So just wanted o see if someone else had the same issue and if they fpund a solution or a workaround.
The documentation provides only an example, not a list of possible values:
https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations/list
And even when I try the example value of the readMask flag I get an error:
[{'#type': 'type.googleapis.com/google.rpc.BadRequest', 'fieldViolations': [{'field': 'read_mask', 'description': 'Invalid field mask provided'}]}]">
I found this similar question:
Google Business Profile API readMask
The example they provide work for me but I still can't get the display name value.
I thought of using the google place ID I get from the metadata response and see if I can use another API to find the name but it feels they should be a proper 'readMask' string vale for the display name here and it is not 'displayName'..
Has anyone a hint of what can I do?
Thanks a lot
If you are trying to get the business name data, your readMask should be 'title'.

Add Post number at Banning Page MyBB

There is a requirement to add total post count beside a banned member's profile name. See image below...
I tried with $post['postnum'] but it's not fetching any data.
Is there any code than can be used... please help.
Since you're attempting to get the user instance from modcp.php you can use $ban['postnum'].

Determine tweet location with Twitter API

How can I find the location of a specific user's tweet? What are the API methods and techniques that I need to go through to determine the location?
Note: The below assumes that you want to grab multiple tweets and find their locations. If you don't, and you just want a single tweet by it's id, use statuses/show.
It's entirely possible - if the user has enabled location for their tweet. It'll be the value of the coordinates key, which will be null if they haven't.
Let's say you're using the following API method: statuses/user_timeline.
This is a GET request
The resource url is: https://api.twitter.com/1.1/statuses/user_timeline.json
You can specify either the user_id or screen_name as part of the GET parameters, for example: ?screen_name=J7mbo.
In the tweet results, once json_decode() is run on them, one of the keys will look like this:
This is actually the first key, according to the documentation, so you should be able to find it and it's value pretty easily.
Warning
Do not get confused with the location sub-key underneath the User key. This is the location of the user, as per their profile, not the location of any specific tweet. Use the coordinates key for that.
Documentation Link

URL: Include a parameter inside a destination query

I've searched a lot to try and solve this problem, but I'm not quite sure what to search for. I didn't really manage to find anything.
Essentially I'm working on a website in which users can register for an event. However, if the user is not logged in, I need to redirect them to the registration screen. This much I've been able to accomplish without much difficulty. However I need to redirect back to the event that they attempted to register for.
My real problem is that the URL of the page I need to return to contains an a parameter, and I'm not sure how to make the registration page take that parameter into account when it redirects back.
Currently when an anonymous user tries to go to
http://[...].com/drupal/?q=civicrm/event/register&id=6
I have it redirect you to
http://[...].com/drupal/?q=user/register&destination=civicrm/event/register&id=6
However, once the form is submitted the "&id=6" is not taken as part of the destination parameter, which means you just go to.
http://[...].com/drupal/?q=civicrm/event/register
Which is not a valid page.
Is there a way for me make the destination parameter include "&id=6"?
On a whim I've also tried.
[...]destination='civicrm/event/register&id=6'
[...]destination="civicrm/event/register&id=6"
[...]destination=civicrm/event/register#id=6
You need to url-encode the value for your destination. Try this:
[..]destination=civicrm/event/register%3Fid%3D6
%3F is hex code for question mark (?), %3D is code for equals (=).

What does the number refer to in link

I am looking at old posts to try and figure out what's wrong with the hackbook example at https://github.com/facebook/facebook-ios-sdk/tree/master/sample/Hackbook .
In this post, Post image to facebook using graph api , it seems that his problem was 117795728310/photos" instead of me/photos
What does 117795728310 refer to? I'm assuming it's not his app id. If it's his user id, where can I find out what mine is?
Thanks,
Mich
The paths of the open graph usually start with the id of the object and then it's connections.
For example: 6708787004/feed will return the feed for the South Park page.
The id can be replaced with a "username", so the above example is the same as "southpark/feed".
And "me/feed" is the same as "YOUR_USER_ID/feed"
You can get your id in all kind of ways, it will be easier to just check "/me" in the graph explorer.
The id you posted is not of a user but a page (graph explorer)
It does look like a User ID.
Go to http://www.facebook.com/note.php?note_id=91532827198 to see how you get yours

Resources