Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.
Posting title of wordpress article on facebook

I have an app already made that I can post a link to a wordpress article to facebook. On facebook though, instead of the title of the article, it will show the title of the entire wordpress blog. This is the NSString I am using to obtain the Title of the article
Code:
self.title = [steve stringByEvaluatingJavaScriptFromString:@"document.title"];
The source code for one of the articles in the blog looks like this at the first:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head profile="http://gmpg.org/xfn/11">

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	
	<title>Meal for Young Adult and Teen Class Following Wednesday Service « Bell Avenue Church of Christ Announcements</title>
Does anyone know why it is posting only Bell Avenue Church of Christ Announcements as the title instead of the article title?

Update:
Apparently the mobile version of the site does not have the same dom properties, as I swtiched to the regular version, and it pulled it just fine. Does anyone know what the correct dom property would be for the mobile version of the site?

Update 2:
Here is the part of the source code in the mobile version that has the Actual title of the article in it.
Code:
<link rel="alternate" type="application/rss+xml" title="Bell Avenue Church of Christ Announcements » Meal for Young Adult and Teen Class Following Wednesday Service Comments Feed" href="http://bacocnews.wordpress.com/2010/10/04/meal-for-young-adult-and-teen-class-following-wednesday-service/feed/" />
<script type="text/javascript">
How would I get the Bell Avenue Church of Christ Announcements » Meal for Young Adult and Teen Class Following Wednesday Service Comments Feed" part in it? I know it's the comments feed, but in the mobile version it appears that's the only thing that shows the full article title.
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.