Facebook Social Login Plugin and: Editing and positioning user information, and storing it for later - html

Please forgive me beacause I'm a noob.
I've been able to get the fb-login-button to appear at the top of my site using facebook social plugins found here:
developers.facebook.com/docs/reference/plugins/login/
Currently when you log into my site shows the following:
http://s11.postimage.org/4i1255843/fb_Login_Mysite.jpg
However I want to setup my site to be more like the RT site and just display the persons first name and and also can display some other info around the site like this:
http://s12.postimage.org/6cm7ylyn1/Rotton_Tom.jpg
My question is:
I want to be able to show or hide specific facebook information from the person that is logged in like their name, how many friends they have that use the site and then place that information around the site or on other pages as I choose. Does anyone know how to do this or where some documentation would be on it?
Also when users login/register using facebook I'd like to store their information they give me somewhere like their email address, name, etc.. Does anyone know how I can store this information on a database or other place? Does it get stored in my facebook application?

For your first name and all the information you want to display, first you need to create MySQL database and create a table within it. You can use phpMyAdmin to create it automatically.
Then, you need to connect your database with your PHP site, where your register and login code is used.
You said you are a noob, so I didn't go into detail, becaouse you have great video tutorials right here. Just watch these videos and you will know everything you need to know about creating login & register page.
To create a summary, you need to learn PHP to get ceratin elements and manipulate them (show them on your site etc.).
Hope I helped!

Related

Facebook Graph API - all account pages + posts data

I'm having an issue trying to write the correct GET request using the Facebook API explorer tool.
I'd like to access all my Facebook pages and the below data from their respective posts. I can achieve this by adding the page name manually, but I'd like it to be more dynamic if I was to add more pages in the future.
posts?ids=Pagename,Pagename,Pagename,Pagename&fields=message,created_time,full_picture,shares,likes.summary(true).limit(0),comments.summary(true).limit(0),from,permalink_url
I know you can use me/accounts but I've had no luck when trying the append the above posts GET request.
Furthermore, I'd like to get the page profile picture from the posts. Just adding picture to the above request doesn't work. Since the profile picture is displayed in each post I'd imagine there is a key to access it?
Any help is appreciated.
I discovered the answer after I reread the documentation
https://graph.facebook.com/v7.0/me/accounts?fields=picture,posts{message,created_time,full_picture,shares,likes.summary(true).limit(0),comments.summary(true).limit(0),from,permalink_url}
All attached accounts profile picture + above data.

Disable the discount box on Shopify Mobile Web Checkout

I've created a Shopify store where discount codes can be entered indirectly. Therefore I am trying to disable the discount box as seen below.
I've researched it and seen you can edit the code in Themes > Actions > Edit Code.
And I've followed some videos:
https://www.youtube.com/watch?v=EJi6zfc63RU
However I am unable to do it.
Has anyone done this before?
Please Help!
You are in the right place, you need to look for the "checkout.liquid" file to make that edit.
Looks like you need to have a Shopify Plus account to be able to access that specific file, and lacks a workaround because of the security necessary to keep that page PCI compliant.
You can see more here: https://community.shopify.com/c/Shopify-Discussion/Customizing-Checkout-Page/td-p/453743

Reveal Tab with Unique content based on location

Lots of marketing articles suggest using a coupon as an incentive in a reveal tab, but I don't see how you would prevent people who have liked your page from abusing the coupon by accessing it over and over.
In my app, I want to offer a coupon that the user sees only the first time they like a page. Users who have been to that page before would not be able to access it again.
I also want to limit who can see it based on location.
When your iframe fan page is rendered, Facebook sents an HTTP POSt to your page with a signed_request post parameter. If you decode it, you will get details about whether they like your page and what country/language they are from. If country works for you, then you are all set for that part. Restricting the coupon to only being viewed is not possible based on the anonymous information Facebook sends. You would need to create an application and have the user approve your application so you can get their ID and log that they have seen it. This would also give you more detailed information about where they are located.

How to embed/integrate WordPress blog into my own web site?

I have a WordPress blog account already (abc.wordpress.com). And I have my own web site: www.xyz.com
I would like to integrate my WordPress blog content into my own site. Hopefully something like blog.xyz.com or just replace the home page of xyz.com with abc.wordpress.com
I know that I can download WordPress' code from wordpress.org and run my own WordPress. And having my own MySQL database, but WordPress is always releasing new code. I don't have the time to keep updating the source on my end to match it.
I'm running my own site as a hobby, so I prefer to let WordPress.com to manage the content for me and continue reuse my own blog at abc.wordpress.com, but make the content show up in my own site: xyz.com
I hope I was clear when explaining this.
Anyone knows a way to do this?
Thanks.
If your main worry is about the updates, I would say don't be. A simple click of the 'Updates' button in the wordpress admin is all you need to do in order to apply the updates for wordpress. A notification will pop up alerting you of any updates.
And as Calle has already mentioned, you can retrieve your content via RSS, or you could just export your current content from Wordpress.com, import the content into your own site, and manage it there. Everything would be in one spot.
Good Luck.
I don't know how good you are with programming but there's a PHP library called Simple Pie which would help you retrieve your content via RSS (which Wordpress automatically generates for you). The adress is here: http://simplepie.org/
If you are not very good with programming, perhaps you can get someone to do it for you or find a script which is already written somewhere. I do think RSS is definitely the best way to go.
I also think you exaggerate the problems of hosting Wordpress yourself. It's not something that you have to keep updated with, and if you want to, all you have to do is log in from time to time, perhaps once a month (how often are you writing articles?), and click "update" and Wordpress will do everything for you. Both for your plugins and WP version.
For the ability to use your own domain (xyz.com) and have wordpress redirect users from abc.wordpress.com(your wordpress blog) to your domain requires a premium account.
If you have a premium account then you can just log in to wordpress.com, click 'upgrades' and select 'domains'. From there you will see the option "Map an Existing Domain" and you will want to enter your domain here. Now your wordpress.com blog is what will show when users enter your domain's url (xyz.com).
Alternatively, if you need a workaround with a free wordpress.com account then you want to just embed your blog and for that you will need to use an RSS feed. Note: this method will not maintain your wordpress styles it will merely transport the content. Also by default not all browsers support RSS feeds.
You can view your blog's current feed by adding 'feed' to the end of your wordpress.com url, i.e. abc.wordpress.com/feed. You can read more about feeds here (http://en.support.wordpress.com/feeds/). Now you are just left with the task of figuring out how to embed the feed into your page.
One final hail-mary you might attempt is just redirecting your domain to your blog. Reference on how to do this different ways here: (http://css-tricks.com/redirect-web-page/). Example, place this tag in the section of your domains pages:
<meta http-equiv="refresh" content="0; URL='http://google.com'" />
(this will redirect after 0 seconds to the specified url)

Where can I find a simple html app that allows site visitors to post comments to the page without registration?

I feel like this should be extremely simple to find on the web... but I haven't found it yet.
I'm looking for something really simple.
I want anyone who visits my page, who want to post a comment on A SINGLE PAGE, to be able to enter text into a text box and click "submit" and have the comment posted to the page.
no checking for spam, nothing complicated just simply adding the text to the page and calling it a day.
any ideas on where I can find such a thing?
Why don't you create one?
You can't do it with HTML only.
You need to store the value in database inorder to maintain those values on the next visit. So you have to write server side logic to update a table and then fetch those values on the next visit. If you store user specific data in tables then you can show each user what he earlier posted, and can hide other users data.