I want to create an iphone application that can send value on the text field to the website page such as a comment. When I click submit my comment, the comment will show on the website. The website doesn't provide an API and it is not my website. Can i do that? Any ideas?
Thanks
A lot of websites will prevent you from sending POST or GET data from an external source as a security measure - so it's usually not going to be as simple as that.
It's probably not a feasible idea unless you can gain access to the website, and you say it's not your website. If you did have access to the website, or an agreement to upload a web service on their site, it would be a very simple matter.
You can create the form with the same input fields and submit to the same form handler. No API is required to submit a form.
Related
I am not a big expert on Facebook and Twitter APIs and I would definitely appreciate some introduction and possible guidance in my project.
This is what I am trying to do, and I wonder first of all if this is even possible.
I am building WP widget with checkbox option for user to allow generation of comment on his facebook wall and tweet with his twitter account. Comment is supposed to pick up values from custom input fields and build itself that way.
Simultaneously I want to generate post on my fb and twitter accounts regarding new user using my widget.
Is this possible to do? Could you give me links to documentation that is essential to make this one work. Otherwise what is your suggestion as a closest alternative effect.
Many many thanks!!
hmm - looks similar to your other question. I explained there how you should start with FB. With Twitter, it's very similar:
First you need to create an app: https://dev.twitter.com/apps/new
Using that app's credentials, you have to ask user to allow your app to post on user's behalf (i.e. you need to obtain an access token): https://dev.twitter.com/docs/auth/obtaining-access-tokens
After you have access token, you can use REST API to do whatever you want: https://dev.twitter.com/docs/api - including posting a tweet.
Regarding:
Simultaneously I want to generate post on my fb and twitter accounts
regarding new user using my widget.
it's no different from the above approach - but you should use your own twitter account name (or /me/ in Facebook). Of course you have to authorize your own app to do that.
I've 'fan-gated' from within an iframe on a facebook tab before but I'm trying desperately to 'fan-gate' from an external website that is not within the facebook framework. We want users to "like" our client's facebook page in order to print a coupon for their product. All the different methods are making me dizzy and I feel as if I've tried each of them three times already!
You don't have to tell me HOW to do it but does anybody know if:
It is even POSSIBLE to do this outside of a facebook iframe?
What is the method I need to go with to make it happen? (Graph API, FQL, etc.)
Thanks so much in advance for any help you all can offer me.
It's not possible. Not sure what methods you've tried so far but your best bet to have functionality even remotely similar to what you're asking is to:
Direct (i.e., deep link) users to fan-gated tab on the client's FB page
Upon the user liking the page, generate a unique link that redirects the user to the page on the external website that holds the coupon.
Expire the link after it's been clicked so that no one else can use it. Alternatively, you can attempt to tie the unique link to a cookie on the user's machine (or something similar).
Modify the external website so that no one can directly link to the coupon without being routed through this fan-gating process.
Not the best user flow in the world, but it's the only way that I can think of to make it work. Trust me, I've tried. =)
What I have to accomplish is to collect some information from the users of the web system before letting them doing anything else on the site. These users are already registered and have roles assigned in asp membership/roles providers. I am able to redirect them to the form that I need them to submit right after they authenticate, however that wouldn't prevent them to navigate to other parts of the system without filling it out. My only thought so far is to insert a check if the user has filled the form in every action of the system and if they didn't - I would redirect them to the form, but that seems like a really horrible idea. What would be the best way implement that functionality for an asp.net mvc2 web app?
Have an Intercepting Filter on the web site that checks on every request to make sure the data is filled out. If it isn't then redirect them to the form.
does anyone have worked with the Facebook registration plugin?
+ http://developers.facebook.com/docs/plugins/registration/
I'ld like to know if it's possible to create a username for my site with it like "example.com/users/username".
Also can the entered data (custom data for my site) edited later or just by sign up?
Thank you.
Yes, and Yes!
You can create a username and even check it before submitting the FB form, please refer to the Facebook registration advanced document.
Also you should be storing the data returned by the Facebook plugin in your database! with that in mind, you (obviously) can edit these data.
I've written a tutorial a while back about using the Facebook Registration Plugin that could help you too.
I'd like to integrate user comments for a Facebook or Group on my website. It's simple enough to insert a Facebook Live Stream widget into a site, but it only shows comments that other users post via the widget on my site.
I'm using ASP.NET MVC, but would prefer to use HTML/Javascript integration over server-side integration if possible.
Your requested Feature is currently not possible.
I guess there will be something similar possible but only for Pages and Profiles. (See Comments API) For current use i would try to stick to an Page (Public Profile) and use the Fan Box
Try the wallflux of your group, http://wallflux.com/feed/115227675156013, does that serve the need?
I don't think Facebook permits scraping their content back to your site.