I create one of my own project which is DevConnector in React. This is a MERN stack project. In this profile picture of the user set on gravatar based email address. Now I have to set a GitHub profile picture as a user profile picture. One of my friends suggests me to use Github API ("https://api.github.com/users/${username}") and get avatar_url instead of gravatar.url.
Now the question is how to use this API in my project.
Here is my GitHub link: https://github.com/urjit2498/DevConnector
Please check this repo and give me some solution to how to use it in my code.
There's an undocumented trick with how avatars are created that you could try:
find your GitHub User ID - it' in the response from https://api.github.com/users/{username}
test the URL in a browser - https://avatars2.githubusercontent.com/u/{id}
if that returns the avatar you expect, you can use that in your project
The avatar_url is the canonical value here and may change down the track, but that might help achieve what you're trying to do today.
Related
Cant figure out how to add FacebookMessengerShareButton from react share.
FacebookShareButton works with no issues, but i need Messenger button.
According to docs
https://www.npmjs.com/package/react-share
I need to add
appId (string): Facebook application id
however, i am not sure what id can i put there since page will be shared by other users.
Demo doesnt work as well. This is the error message:
Sorry, this content isn't available at the moment
Has anyone succeeded in adding facebook messenger share button?
Cheers!
Folks,
We are in a unique situation here. Our React site integrates with Signicat for identity solution. Most of our user base comes from Facebook i.e. they use the Facebook app, look at our posts and click on links we post which redirect to certain sections in our website which require identification.
So an example link posted on Facebook group https://example.com/en/startpage-in-english/ is converted into https://l.facebook.com/l.php?u=https%3A%2F%2Fexample.com%2Fen%2Fstartpage-in-english%2F%3Ffbclid%3DIwAR3loYqYOvom5k8_mOww89p5tun5H9HqIIKE1ebwwCcB3PD4jzxpTVyZGCk&h=AT1E3p1ejYWH9l2KhUo8D_RVjl_EzKBat4woeMHgRv7yXpT9Y-EZoBcK26sQtjjBBwAQt7Pt83a-i_k5JCGuvOBWfgB9pZ7Uv8LnDlyphNKc1Og0nl6QIqWd_nFEAva3OWN-PZ3byqsU7K0I5A&__tn__=-UK-R&c[0]=AT0-5n51iPMlSYghORXW8qxYXJQEejQTAhfiDQ3P3DK_ZTZM3GWbN4zXYKf-nyD_hWJdxQccenDp-5VgphfWuD6ZQ0ikeXq4lv4bjLbSJVFP9k4IxeMBT5mDa9jNdYnYlNs-DkXOM-LiPhhl-Obra9CAbtvihe-G7-8. When users click on the link, Facebook by default opens the link in its own Facebook browser. The subsequent steps in our portal need the user to identify himself and when the identification is completed and in the final step the request to Signicat hangs forever.
We identified that this issue is only happening with Facebook browser and hence one of the workarounds was to Open the default browser with the link to our website.
Note that:
a. this is not a React-Native app, our website is built using plain React hence the WebView solution does not work.
b. Facebook browser suppresses "window.open" with "newwindow" call and simply displays the site in the same Facebook browser instance.
So bottom line is, we need a way to Open the default OS Browser from Facebook App/Browser with the link to our site. Hope somebody can help!
Thanks in advance...
SG
I have my react website hosted on firebase with custom domain, the domain is added to google search console/google webmaster, the problem is the title and description of website does not change when i search my website on google.com.it keeps showing old title and description.i have tried react helmet, react meta tags, browser clear history, even tried with simple html file deployment, the title and description does not change.Thanks for helping.
It looks like you'll need to ask google to recrawl the website if you would like it changed quicker than it would take google to revist the site organically. There are details on how to do this here: https://developers.google.com/search/docs/advanced/crawling/ask-google-to-recrawl
Ultimately you'll need to Inspect the URL using the URL Inspection tool. Details on how to do this are in the link above.
I have an issue with share/like button from Angular app. I finally made it working correctly with links but share/like preview if completely wrong. I tried XFBML.parse(), switching to html 5 mode, etc.
There are two complete enigmas:
1. I got "Given URL is not allowed by the Application configuration..." despite adding all possible variants to fb app setting.
When share preview appear - it has "Angular", but I never added it anywhere.
Here is the link
Would be grateful for any ideas...
Thx
The Facebook Scraper only looks at the HTML code your server delivers, it does not execute any JavaScript.
So if you want to share different articles, you need an individual URL for each article, that delivers the relevant meta data when requested from the server.
You can find some more explanation and hints on how to implement this in this article, http://www.michaelbromley.co.uk/blog/171/enable-rich-social-sharing-in-your-angularjs-app
i want to Remove facebook page in compositeC1 cms
whenever i am run this application it comes with facebook, so i want to replace my own page at the palce of facebbok details
i want to replace some other page at facebook or eles i want to dislay
some blank empty page how
Follow this discussion - http://compositec1.codeplex.com/discussions/348539
The content is dynamically fetched from http://c1console.composite.net/C1/StartPage.aspx - the content is downloaded indirectly by the website service you the C1 Console. You can configure it - if you edit ~/Composite/web.config you will find the URL, and you can change it. Note that your custom page would need to share certain characteristics with our start screen (page title and JavaScript communicating successful load).
It has been discussed several times before on the CodePlex forum in these threads
http://compositec1.codeplex.com/discussions/272600
http://compositec1.codeplex.com/discussions/348393
http://compositec1.codeplex.com/discussions/348539