Automatically update Instagram profile pic url on database - database

on my database i save the information of users who sign up with Instagram on my application.
When I want to display the profile pic of user i get the url (of the Instagram profile pic) that I've saved on my database and show it without problems.
But, when user change his profile pic on Instagram the url that I've said says: "Content not found".
It's possible to update automatically the Instagram user profil pic on my database? Any suggest?

Related

how to display users specefic data when users loggin to my website?

i'm building an investement website for my client and i need to display personal investement chart for each client depending on there username account on there profile page.
i tried ninja chart pluggin but it display the same chart for all users and not a sprecific one depending on there user name.
Thank you all.

How to customize Verify your identity (entering verification code) screen in Salesforce?

I have created Connected App in Salesfoce and have customized the login screen (changing logo, button css etc., using Visualforce). When user logs in for the first time or logs in from different browser or device, it prompts for 'Verify your identity' (to enter verification code).
I know we can customize the option of sending the verification code to mobile or email. But, I would like to customize the 'Verify your Identity' screen like changing the logo, button css etc. I didn't find it under Visualforce Pages.
Where is this located and how can the styles be customized?
This will be possible in Winter '20. From Release Notes:
When external users register a verification method, either a phone
number or email address, Salesforce displays a Verify page for users
to enter their verification code. You can replace the default Verify
page with your own, for example, to reflect your brand or meet your
corporate guidelines

Is there a "Default" profile edit page in Azure AD B2C and if so, how can user access it?

I have Azure AD B2C tenant set up with a signin/signup policy which includes sign up attributes of Email Address and Postal Code.
When anyone access any URL in the API secured by that tenant, then they get the nice Default Signin/Signup screen, and if they are signing up, then there is an text box where they can enter their postcode.
My question is, is there an equivalent Default Profile Edit page where user can see/edit their Profile (which would consist of email + postal code only [although I believe that based on Can we change email address of user from "Profile editing policies" in Azure AD B2C? actually email wouldn't be editable, so lets say just Postal Code].
If there is a way for a users to "log in" and see/edit their profile via a default profile edit screen and if so, what is the URL for that? https://login.microsoftonline.com/static//somthing?
Or can the user's profile editing only be done via either a Page UI Customization or via a separate web page plus Graph API calls only?
OK I think I've answered my own question here. I now see that on the Profile Editing Policy blade, there is a Run Now endpoint
https://login.microsoftonline.com/yourtenantname.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1_EditProfilePolicyOrWhateverYourEditPolicyIsCalled&client_id=your-application-id-guid&nonce=defaultNonce
When I run that end point I get a very basic editing screen showing the Profile attributes.
This is the kind of thing I was driving at in my question.
Also, not sure how I didn't previously see https://learn.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-quickstarts-web-app
It has lots of information and in the "test drive an Azure AD B2C Web app" section shows what I need to know pretty much exactly.
Finally, this document https://learn.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-oidc#send-a-sign-out-request
has a lot of information including how to log out:
GET https://login.microsoftonline.com/fabrikamb2c.onmicrosoft.com/oauth2/v2.0/logout?p=b2c_1_sign_in&post_logout_redirect_uri=https%3A%2F%2Faadb2cplayground.azurewebsites.net%2F
As per the sign-up or sign-in policy, you can create a profile editing policy, which enables an end user to view and edit the profile attributes for their local account.
The end user can't edit their e-mail address via this profile editing policy.
You can otherwise implement the profile editing UI and integrate through the Graph API to get and set the profile attributes for the local account.

Login With Facebook After Registration - Meteor

I am currently working on my first AngularJs + Meteor app. In this app, user can either register using $meteor.createUser or can use Facebook to login i.e. $meteor.loginWithFacebook. After logging in, on one page I am displaying user's friends from Facebook who have used this app. If user has logged in using Facebook then that page is working properly. But if user has registered using normal Meteor login [$meteor.createUser], then on that page I have to display Login with Facebook button. When user logs in with Facebook on this page, it is creating new document in users collection. But I am using Meteor.userId() as primary key in all tables. So I have following options:
Option 1:
delete current document of user [_id no 1]
log in with Facebook
change _id of a document created while logging
with facebook to _id no 1
Option 2:
Assign "_id no 1" to user while he registers using Facebook
But I have not found any way to do so. How to do it? I am not able to change _id of document present in users collection. Please help. Thank you in advance.
I think you have to merge those accounts. This package will be helpful:
https://atmospherejs.com/mikael/accounts-merge

Get user name and basic detail without using facebook graph api

I am working on a website, I have one problem ..
I have facebook users id in my database, now I want to get their names using their ids but without using graph api..
Is there any way to do so..
I assume you want to do this programaticaly... Short answer is - you can't.
If you want to do it manually you can simply navigate to this url: https://facebook.com/profile.php?id={USERS_ID}It will give you the users profile page where you can see their name IF their profile is publicly available.
Essentially you should request the users names and store them in your database when the users authenticate your application.

Resources